CefMenuModel MembersXilium.CefGlue

[This is preliminary documentation and is subject to change.]

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 methodDispose
Releases all resources used by the CefMenuModel
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodFinalize (Overrides OnlineObject Finalize .)
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 methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
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 methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
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.
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
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 methodOnlineToString
Returns a OnlineString that represents the current OnlineObject.
(Inherited from OnlineObject.)
Back to Top
Properties

  NameDescription
Public propertyCount
Returns the number of items in this menu.
Back to Top
See Also