Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IContextMenuItemCollection Methods
Show Inherited Hide Inherited

A collection of root-level or nested items of the context menu in the Rich Text Editor.
Name Description
Add(Int32, String) Adds a predefined item to the specified position in the item collection.
Add(String) Adds a predefined item to the end of the item collection.
AddCustomItem(Int32, String, Func<Task>, Boolean) Adds a custom menu item at the specified position in the item collection.
AddCustomItem(Int32, String, Func<Task>) Adds a custom menu item to the specified position in the item collection.
AddCustomItem(Int32, String) Adds a custom menu item at the specified postition in the item collection.
AddCustomItem(String, Func<Task>, Boolean) Adds a custom menu item to the end of the item collection.
AddCustomItem(String, Func<Task>) Adds a custom menu item to the end of the item collection.
AddCustomItem(String) 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.
GetEnumerator() Returns an enumerator that iterates through the collection. Inherited from IEnumerable<T>.
IndexOf(IContextMenuItem) Returns the specified item’s position within the item collection.
Remove(Int32) Removes an item with the specified index from an item collection.
Remove(String) Removes an item with the specified name from an item collection.
See Also