IContextMenuItemCollection Members
In This Article
#Properties
Name | Description |
---|---|
Count | Returns the number of items in the collection. |
Item[Int32] | Returns a context menu item with the specified index. |
Item[String] | Returns a context menu item with the specified name. |
#Methods
Name | Description |
---|---|
Add |
Adds a predefined item to the specified position in the item collection. |
Add |
Adds a predefined item to the end of the item collection. |
Add |
Adds a custom menu item at the specified position in the item collection. |
Add |
Adds a custom menu item to the specified position in the item collection. |
Add |
Adds a custom menu item at the specified postition in the item collection. |
Add |
Adds a custom menu item to the end of the item collection. |
Add |
Adds a custom menu item to the end of the item collection. |
Add |
Adds a custom menu item to the end of the item collection. |
Clear() | Removes all items from an item collection. |
Flatten() | Converts the item collection into a flattened collection that contains all root-level and nested items of the context menu. |
Get |
Returns an enumerator that iterates through the collection.
Inherited from IEnumerable |
Index |
Returns the specified item’s position within the item collection. |
Remove |
Removes an item with the specified index from an item collection. |
Remove |
Removes an item with the specified name from an item collection. |
See Also