New to Telerik Document ProcessingStart a free 30-day trial

Mutable list of Action items used to compose responses to user or document events.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Actions

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class ActionCollection : IEnumerable<Action>, IEnumerable

Inheritance: objectActionCollection

Implements: IEnumerableIEnumerable<Action>

Methods

Adds the specified Action to the end of the collection.

C#
public void Add(Action action)
Parameters:actionAction

The Action to add.

Adds the elements of the specified collection to the end of the current collection.

C#
public void AddRange(IEnumerable<Action> items)
Parameters:itemsIEnumerable<Action>

The collection of Action objects to add.

Removes all elements from the collection.

C#
public void Clear()

Determines whether the collection contains a specific Action.

C#
public bool Contains(Action item)
Parameters:itemAction

The Action to locate.

Returns:

bool

true if the Action is found; otherwise, false.

Determines whether the specified object is equal to the current collection.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current collection.

Returns:

bool

true if the specified object is equal to the current collection; otherwise, false.

Overrides: object.Equals(object)

Finds the first Action that matches the conditions defined by the specified predicate.

C#
public Action Find(Predicate<Action> match)
Parameters:matchPredicate<Action>

The Predicate<T> delegate that defines the conditions of the element to search for.

Returns:

Action

The first Action that matches the specified predicate, if found; otherwise, null.

Finds all Action objects that match the conditions defined by the specified predicate.

C#
public List<Action> FindAll(Predicate<Action> match)
Parameters:matchPredicate<Action>

The Predicate<T> delegate that defines the conditions of the elements to search for.

Returns:

List<Action>

A List<T> containing all the Action objects that match the specified predicate, if found; otherwise, an empty list.

Returns an enumerator that iterates through the collection.

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

IEnumerator<Action>

An enumerator for the collection.

Implements: IEnumerable<Action>.GetEnumerator()

Serves as a hash function for the ActionCollection type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current collection.

Overrides: object.GetHashCode()

Returns a range of elements from the collection.

C#
public List<Action> GetRange(int index, int count)
Parameters:indexint

The zero-based starting index of the range.

countint

The number of elements in the range.

Returns:

List<Action>

A List<T> containing the specified range of elements.

Returns the zero-based index of the first occurrence of a specific Action in the collection.

C#
public int IndexOf(Action item)
Parameters:itemAction

The Action to locate.

Returns:

int

The zero-based index of the first occurrence of the Action; -1 if not found.

Inserts an Action into the collection at the specified index.

C#
public void Insert(int index, Action item)
Parameters:indexint

The zero-based index at which the Action should be inserted.

itemAction

The Action to insert.

Removes the first occurrence of a specific Action from the collection.

C#
public void Remove(Action item)
Parameters:itemAction

The Action to remove.

Removes the element at the specified index of the collection.

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

The zero-based index of the element to remove.

Removes a range of elements from the collection.

C#
public void RemoveRange(int index, int count)
Parameters:indexint

The zero-based index at which removal begins.

countint

The number of elements to remove.

Reverses the order of the elements in the collection.

C#
public void Reverse()

Properties

Gets the number of Action elements contained in the collection.

C#
public int Count { get; }

Gets or sets the Action at the specified index.

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

The zero-based index of the Action to get or set.

Property Value:

The Action at the specified index.