New to Telerik UI for WinForms? Start a free 30-day trial

Stores routed application commands and reports changes through CollectionChanged.

Definition

Namespace:Telerik.WinForms.Documents.RichTextBoxCommands

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class ApplicationCommandsCollection : IEnumerable, INotifyCollectionChanged

Inheritance: objectApplicationCommandsCollection

Implements: IEnumerableINotifyCollectionChanged

Methods

Adds a command to the collection and raises a collection-change notification.

C#
public void Add(RoutedUICommand applicationCommand)
Parameters:applicationCommandRoutedUICommand

The routed application command to add. Duplicate entries are allowed.

Removes all commands and raises a reset notification.

C#
public void Clear()

Determines whether the collection contains the specified command.

C#
public bool Contains(RoutedUICommand applicationCommand)
Parameters:applicationCommandRoutedUICommand

The routed application command to locate.

Returns:

bool

true if the command is present; otherwise, false.

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

IEnumerator<RoutedUICommand>

Raises the event.

C#
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters:eNotifyCollectionChangedEventArgs

The NotifyCollectionChangedEventArgs instance containing the event data.

Removes the first matching command and raises a notification when an entry was removed.

C#
public bool Remove(RoutedUICommand applicationCommand)
Parameters:applicationCommandRoutedUICommand

The routed application command to remove.

Returns:

bool

true if an entry was removed; otherwise, false.

Events

Occurs after a command is added, removed, or the collection is cleared.

C#
public event NotifyCollectionChangedEventHandler CollectionChanged

Implements: INotifyCollectionChanged.CollectionChanged