Collection of context menu groups.
Definition
Namespace:Telerik.WinForms.RichTextEditor.RichTextBoxUI.Menus
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ContextMenuGroupCollection : IEnumerable
Inheritance: objectContextMenuGroupCollection
Implements:
Constructors
Initializes a new instance of the ContextMenuGroupCollection class.
public ContextMenuGroupCollection()
Properties
Gets the number of groups. Empty or null groups are omitted when the context menu is populated.
public int Count { get; }
Gets or replaces the group at the specified position in the context-menu display order.
public ContextMenuGroup this[int index] { get; set; }
The zero-based position of the group.
Property Value:The group at the specified position.
Methods
Appends a group after the groups already in the collection.
Removes all groups from the collection.
public void Clear()
Determines whether the specified group is in the collection.
public bool Contains(ContextMenuGroup item)
The group to locate.
Returns:Copies the groups to an array, preserving their display order.
public void CopyTo(ContextMenuGroup[] array, int arrayIndex)
The destination array.
arrayIndexintThe zero-based array position at which copying begins.
Returns an enumerator that visits the groups in display order.
public IEnumerator<ContextMenuGroup> GetEnumerator()
IEnumerator<ContextMenuGroup>
An enumerator over the groups in this collection.
Returns the position of a group in the collection, or -1 if it is not present.
public int IndexOf(ContextMenuGroup item)
The group to locate.
Returns:The group's zero-based position, or -1 if it is not in the collection.
Inserts a group at the specified position, changing the order and separator placement of the displayed groups.
public void Insert(int index, ContextMenuGroup item)
The zero-based position at which to insert the group.
itemContextMenuGroupThe group to insert.
Removes the first occurrence of the specified group.
public bool Remove(ContextMenuGroup item)
The group to remove.
Returns:Removes the group at the specified position.
public void RemoveAt(int index)
The zero-based position of the group to remove.