Skip to main content
All docs
V24.1

IContextMenuItemCollection Methods

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