Cef |
public sealed class CefMenuModel : IDisposable
The CefMenuModel type exposes the following members.
| Name | Description | |
|---|---|---|
| AddCheckItem | Add a check item to the menu. Returns true on success. | |
| AddItem | Add an item to the menu. Returns true on success. | |
| AddRadioItem | 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. | |
| AddSeparator | Add a separator to the menu. Returns true on success. | |
| AddSubMenu | Add a sub-menu to the menu. The new sub-menu is returned. | |
| Clear | Clears the menu. Returns true on success. | |
| Create | Create a new MenuModel with the specified |delegate|. | |
| Dispose | Releases all resources used by the CefMenuModel | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | (Overrides ObjectFinalize) | |
| GetAccelerator | Retrieves the keyboard accelerator for the specified |commandId|. Returns true on success. | |
| GetAcceleratorAt | Retrieves the keyboard accelerator for the specified |index|. Returns true on success. | |
| GetCommandIdAt | Returns the command id at the specified |index| or -1 if not found due to invalid range or the index being a separator. | |
| GetGroupId | Returns the group id for the specified |commandId| or -1 if invalid. | |
| GetGroupIdAt | Returns the group id at the specified |index| or -1 if invalid. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetIndexOf | Returns the index associated with the specified |commandId| or -1 if not found due to the command id not existing in the menu. | |
| GetItemType | Returns the item type for the specified |commandId|. | |
| GetItemTypeAt | Returns the item type at the specified |index|. | |
| GetLabel | Returns the label for the specified |commandId| or empty if not found. | |
| GetLabelAt | Returns the label at the specified |index| or empty if not found due to invalid range or the index being a separator. | |
| GetSubMenu | Returns the submenu for the specified |commandId| or empty if invalid. | |
| GetSubMenuAt | Returns the submenu at the specified |index| or empty if invalid. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| HasAccelerator | Returns true if the specified |commandId| has a keyboard accelerator assigned. | |
| HasAcceleratorAt | Returns true if the specified |index| has a keyboard accelerator assigned. | |
| InsertCheckItemAt | Insert a check item in the menu at the specified |index|. Returns true on success. | |
| InsertItemAt | Insert an item in the menu at the specified |index|. Returns true on success. | |
| InsertRadioItemAt | 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. | |
| InsertSeparatorAt | Insert a separator in the menu at the specified |index|. Returns true on success. | |
| InsertSubMenuAt | Insert a sub-menu in the menu at the specified |index|. The new sub-menu is returned. | |
| IsChecked | Returns true if the specified |commandId| is checked. Only applies to check and radio items. | |
| IsCheckedAt | Returns true if the specified |index| is checked. Only applies to check and radio items. | |
| IsEnabled | Returns true if the specified |commandId| is enabled. | |
| IsEnabledAt | Returns true if the specified |index| is enabled. | |
| IsVisible | Returns true if the specified |commandId| is visible. | |
| IsVisibleAt | Returns true if the specified |index| is visible. | |
| Remove | Removes the item with the specified |commandId|. Returns true on success. | |
| RemoveAccelerator | Remove the keyboard accelerator for the specified |commandId|. Returns true on success. | |
| RemoveAcceleratorAt | Remove the keyboard accelerator at the specified |index|. Returns true on success. | |
| RemoveAt | Removes the item at the specified |index|. Returns true on success. | |
| SetAccelerator | Set the keyboard accelerator for the specified |commandId|. |key_code| can be any virtual key or character value. Returns true on success. | |
| SetAcceleratorAt | Set the keyboard accelerator at the specified |index|. |key_code| can be any virtual key or character value. Returns true on success. | |
| SetChecked | Check the specified |commandId|. Only applies to check and radio items. Returns true on success. | |
| SetCheckedAt | Check the specified |index|. Only applies to check and radio items. Returns true on success. | |
| SetCommandIdAt | Sets the command id at the specified |index|. Returns true on success. | |
| SetEnabled | Change the enabled status of the specified |commandId|. Returns true on success. | |
| SetEnabledAt | Change the enabled status at the specified |index|. Returns true on success. | |
| SetGroupId | Sets the group id for the specified |commandId|. Returns true on success. | |
| SetGroupIdAt | Sets the group id at the specified |index|. Returns true on success. | |
| SetLabel | Sets the label for the specified |commandId|. Returns true on success. | |
| SetLabelAt | Set the label at the specified |index|. Returns true on success. | |
| SetVisible | Change the visibility of the specified |commandId|. Returns true on success. | |
| SetVisibleAt | Change the visibility at the specified |index|. Returns true on success. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx) | |
| PropertyGet |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertyGetT |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx) |