New to Telerik UI for WPFStart a free 30-day trial

Collection of context menu items.

Definition

Namespace:Telerik.Windows.Controls.RichTextBoxUI.Menus

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class ContextMenuGroup : IList<RadMenuItem>, ICollection<RadMenuItem>, IEnumerable<RadMenuItem>, IEnumerable

Inheritance: objectContextMenuGroup

Implements: ICollection<RadMenuItem>IEnumerableIEnumerable<RadMenuItem>IList<RadMenuItem>

Constructors

Initializes a new instance of the ContextMenuGroup class.

C#
public ContextMenuGroup()

Initializes a new instance of the ContextMenuGroup class.

C#
public ContextMenuGroup(ContextMenuGroupType type, string name)
Parameters:typeContextMenuGroupType

The type of the group.

namestring

The name of the group.

Initializes a new instance of the ContextMenuGroup class.

C#
public ContextMenuGroup(ContextMenuGroupType type)
Parameters:typeContextMenuGroupType

The type of the group.

Initializes a new instance of the ContextMenuGroup class.

C#
public ContextMenuGroup(string name)
Parameters:namestring

The name of the group.

Properties

C#
public int Count { get; }

Implements: ICollection<RadMenuItem>.Count

Gets the name of the group.

C#
public string Name { get; }
Property Value:

The name of the group.

C#
public RadMenuItem this[int index] { get; set; }
Parameters:indexint

Implements: IList<RadMenuItem>.this[int]

Gets the type of the group.

C#
public ContextMenuGroupType Type { get; }
Property Value:

The type of the group.

Methods

C#
public void Add(RadMenuItem item)
Parameters:itemRadMenuItem

Implements: ICollection<RadMenuItem>.Add(RadMenuItem)

C#
public void Clear()

Implements: ICollection<RadMenuItem>.Clear()

C#
public bool Contains(RadMenuItem item)
Parameters:itemRadMenuItemReturns:

bool

Implements: ICollection<RadMenuItem>.Contains(RadMenuItem)

C#
public void CopyTo(RadMenuItem[] array, int arrayIndex)
Parameters:arrayRadMenuItem[]arrayIndexint

Implements: ICollection<RadMenuItem>.CopyTo(RadMenuItem[], int)

C#
public IEnumerator<RadMenuItem> GetEnumerator()
Returns:

IEnumerator<RadMenuItem>

Implements: IEnumerable<RadMenuItem>.GetEnumerator()

C#
public int IndexOf(RadMenuItem item)
Parameters:itemRadMenuItemReturns:

int

Implements: IList<RadMenuItem>.IndexOf(RadMenuItem)

C#
public void Insert(int index, RadMenuItem item)
Parameters:indexintitemRadMenuItem

Implements: IList<RadMenuItem>.Insert(int, RadMenuItem)

C#
public bool Remove(RadMenuItem item)
Parameters:itemRadMenuItemReturns:

bool

Implements: ICollection<RadMenuItem>.Remove(RadMenuItem)

C#
public void RemoveAt(int index)
Parameters:indexint

Implements: IList<RadMenuItem>.RemoveAt(int)