Click or drag to resize

CefMenuModel Methods

The CefMenuModel type exposes the following members.

Methods
  NameDescription
Public methodAddCheckItem
Add a check item to the menu. Returns true on success.
Public methodAddItem
Add an item to the menu. Returns true on success.
Public methodAddRadioItem
Add a radio item to the menu. Only a single item with the specified |group_id| can be checked at a time. Returns true on success.
Public methodAddSeparator
Add a separator to the menu. Returns true on success.
Public methodAddSubMenu
Add a sub-menu to the menu. The new sub-menu is returned.
Public methodClear
Clears the menu. Returns true on success.
Public methodStatic memberCreate
Create a new MenuModel with the specified |delegate|.
Public methodDispose
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Overrides ObjectFinalize.)
Public methodGetAccelerator
Retrieves the keyboard accelerator for the specified |commandId|. Returns true on success.
Public methodGetAcceleratorAt
Retrieves the keyboard accelerator for the specified |index|. Returns true on success.
Public methodGetCommandIdAt
Returns the command id at the specified |index| or -1 if not found due to invalid range or the index being a separator.
Public methodGetGroupId
Returns the group id for the specified |commandId| or -1 if invalid.
Public methodGetGroupIdAt
Returns the group id at the specified |index| or -1 if invalid.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetIndexOf
Returns the index associated with the specified |commandId| or -1 if not found due to the command id not existing in the menu.
Public methodGetItemType
Returns the item type for the specified |commandId|.
Public methodGetItemTypeAt
Returns the item type at the specified |index|.
Public methodGetLabel
Returns the label for the specified |commandId| or empty if not found.
Public methodGetLabelAt
Returns the label at the specified |index| or empty if not found due to invalid range or the index being a separator.
Public methodGetSubMenu
Returns the submenu for the specified |commandId| or empty if invalid.
Public methodGetSubMenuAt
Returns the submenu at the specified |index| or empty if invalid.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasAccelerator
Returns true if the specified |commandId| has a keyboard accelerator assigned.
Public methodHasAcceleratorAt
Returns true if the specified |index| has a keyboard accelerator assigned.
Public methodInsertCheckItemAt
Insert a check item in the menu at the specified |index|. Returns true on success.
Public methodInsertItemAt
Insert an item in the menu at the specified |index|. Returns true on success.
Public methodInsertRadioItemAt
Insert a radio item in the menu at the specified |index|. Only a single item with the specified |group_id| can be checked at a time. Returns true on success.
Public methodInsertSeparatorAt
Insert a separator in the menu at the specified |index|. Returns true on success.
Public methodInsertSubMenuAt
Insert a sub-menu in the menu at the specified |index|. The new sub-menu is returned.
Public methodIsChecked
Returns true if the specified |commandId| is checked. Only applies to check and radio items.
Public methodIsCheckedAt
Returns true if the specified |index| is checked. Only applies to check and radio items.
Public methodIsEnabled
Returns true if the specified |commandId| is enabled.
Public methodIsEnabledAt
Returns true if the specified |index| is enabled.
Public methodIsVisible
Returns true if the specified |commandId| is visible.
Public methodIsVisibleAt
Returns true if the specified |index| is visible.
Public methodRemove
Removes the item with the specified |commandId|. Returns true on success.
Public methodRemoveAccelerator
Remove the keyboard accelerator for the specified |commandId|. Returns true on success.
Public methodRemoveAcceleratorAt
Remove the keyboard accelerator at the specified |index|. Returns true on success.
Public methodRemoveAt
Removes the item at the specified |index|. Returns true on success.
Public methodSetAccelerator
Set the keyboard accelerator for the specified |commandId|. |key_code| can be any virtual key or character value. Returns true on success.
Public methodSetAcceleratorAt
Set the keyboard accelerator at the specified |index|. |key_code| can be any virtual key or character value. Returns true on success.
Public methodSetChecked
Check the specified |commandId|. Only applies to check and radio items. Returns true on success.
Public methodSetCheckedAt
Check the specified |index|. Only applies to check and radio items. Returns true on success.
Public methodSetCommandIdAt
Sets the command id at the specified |index|. Returns true on success.
Public methodSetEnabled
Change the enabled status of the specified |commandId|. Returns true on success.
Public methodSetEnabledAt
Change the enabled status at the specified |index|. Returns true on success.
Public methodSetGroupId
Sets the group id for the specified |commandId|. Returns true on success.
Public methodSetGroupIdAt
Sets the group id at the specified |index|. Returns true on success.
Public methodSetLabel
Sets the label for the specified |commandId|. Returns true on success.
Public methodSetLabelAt
Set the label at the specified |index|. Returns true on success.
Public methodSetVisible
Change the visibility of the specified |commandId|. Returns true on success.
Public methodSetVisibleAt
Change the visibility at the specified |index|. Returns true on success.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
See Also