The
Item object holds information about a menu item. Use the
Items
property to access the control's items collection. Use
Add
method to add new items to the menu. Use the
Item
or
Find property to access an Item object. Here's
the list of supported properties and methods:
| | Name | Description | |
| | Alignment | Retrieves or sets the item's caption alignment. | |
| | AllowEdit | Retrieves or sets a value indicating whether the item contains an edit control. | |
| | BackColor | Specifies the item's background color when the UseBackColor property is True. | |
| | Bold | Specifies whether the item's caption should appear in bold. | |
| | Bullet | Retrieves or sets a value indicating whether the item is of bullet type. | |
| | Caption | Retrieves or sets a value that indicates the item's caption. | |
| | Check | Retrieves or sets a value that indicates whether the item is of check type. | |
| | CheckEffect | Specifies the visual effect of the check box in the item. | |
| | Control | Specifies whether the item contains a control inside. | |
| | Cursor | Specifies the shape of the cursor when mouse hovers the item. | |
| | EditBorder | Specifies the border for the inside edit control. | |
| | EditCaption | Specifies the edit's caption when the item contains an edit control. | |
| | EditWidth | Specifies the width for the inside edit control. | |
| | Enabled | Retrieves or sets a value that indicates the item's state. | |
| | ForeColor | Specifies the item's foreground color when the UseForeColor property is True. | |
| | ID | Retrieves or sets a value that specifies the item's identifier. | |
| | Image | Retrieves or sets a value that indicates the item's index image. | |
| | Italic | Specifies whether the item's caption should appear in italic. | |
| | Parent | Gets the item's parent. | |
| | Popup | Retrieves or sets a value indicating whether the item contains a sub menu. | |
| | Separator | Retrieves or sets a value that indicates whether the source is a separator item. | |
| | ShowDown | Retrieves or sets a value that indicates whether the item's submenu is up or down oriented . | |
| | Strikeout | Specifies whether the item's caption should appear in strikeout. | |
| | SubControl | Retrieves the Control object that holds information about item's inside component. | |
| | SubMenu | Retrieves a Menu object that indicates the item's sub menu. Retrieves Nothing, if the item contains no sub menu. | |
| | Tooltip | Specifies the item's tooltip. | |
| | TooltipTitle | Specifies the title of the item's tooltip. | |
| | Underline | Specifies whether the item's caption appears as underlined. | |
| | UseBackColor | Retrieves or sets a value that indicates whether the item's background color is specified by BackColor property. | |
| | UseForeColor | Retrieves or sets a value that indicates whether the item's foreground color is specified by ForeColor property. | |
| | UserData | Associates an extra data to the object. | |
| | Visible | Specifies whether the item is visible or hidden. | |