The MenuItem class provides all data necessary to visualize a menu item, such as the menu's text and the menu's image. An item has an Items property specifying a submenu. If there is no text specified, the menu item is a separator.

Syntax

public class MenuItem
Public Class MenuItem

Introduced: X11.

Methods

Method Description
Execute Executes the menu item.

Properties

Property Description
Checked Gets a value indicating whether the menu item is checked.
Enabled Gets a value indicating whether the menu item is enabled.
Image Gets the menu item's image.
Items Gets an array of ServerVisualization.MenuItem objects specifying a submenu.
Text Gets the menu item's text.