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

Represents a collection of application commands used in the RichTextBox control.

Definition

Namespace:Telerik.Windows.Documents.RichTextBoxCommands

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class ApplicationCommandsCollection : IEnumerable<RoutedUICommand>, IEnumerable, INotifyCollectionChanged

Inheritance: objectApplicationCommandsCollection

Implements: IEnumerableIEnumerable<RoutedUICommand>INotifyCollectionChanged

Methods

Adds a new routed UI command to the application commands collection.

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

The routed UI command to add to the collection.

Clears all commands from the application commands collection.

C#
public void Clear()

Determines whether the collection contains a specified command.

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

The command to locate in the collection.

Returns:

bool

True if the command is found in the collection; otherwise, false.

Retrieves an enumerator that iterates through the collection of application commands.

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

IEnumerator<RoutedUICommand>

An enumerator that can be used to iterate through the ApplicationCommandsCollection.

Implements: IEnumerable<RoutedUICommand>.GetEnumerator()

Raises the event.

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

The NotifyCollectionChangedEventArgs instance containing the event data.

Removes a specified routed UI command from the application commands collection.

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

The routed UI command to remove from the collection.

Returns:

bool

True if the command was successfully removed; otherwise, false.

Events

C#
public event NotifyCollectionChangedEventHandler CollectionChanged

Implements: INotifyCollectionChanged.CollectionChanged