Open this page in the API Guide

CommandMenu.dispose Method

Disposes the element.