Class
ActionCollection

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:

cs-api-definition
public class ActionCollection : IEnumerable

Inheritance: objectActionCollection

Implements: IEnumerable

Properties

Count

Gets the number of Action elements contained in the collection.

Declaration

cs-api-definition
public int Count { get; }

Property Value

int

this[int]

Gets or sets the Action at the specified index.

Declaration

cs-api-definition
public Action this[int index] { get; set; }

Parameters

index

int

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

Property Value

Action

The Action at the specified index.

Methods

Add(Action)

Adds the specified Action to the end of the collection.

Declaration

cs-api-definition
public void Add(Action action)

Parameters

action

Action

The Action to add.

AddRange(IEnumerable<Action>)

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

Declaration

cs-api-definition
public void AddRange(IEnumerable<Action> items)

Parameters

items

IEnumerable<Action>

The collection of Action objects to add.

Clear()

Removes all elements from the collection.

Declaration

cs-api-definition
public void Clear()

Contains(Action)

Determines whether the collection contains a specific Action.

Declaration

cs-api-definition
public bool Contains(Action item)

Parameters

item

Action

The Action to locate.

Returns

bool

true if the Action is found; otherwise, false.

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

Find(Predicate<Action>)

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

Declaration

cs-api-definition
public Action Find(Predicate<Action> match)

Parameters

match

Predicate<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.

FindAll(Predicate<Action>)

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

Declaration

cs-api-definition
public List<Action> FindAll(Predicate<Action> match)

Parameters

match

Predicate<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.

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration

cs-api-definition
public IEnumerator<Action> GetEnumerator()

Returns

IEnumerator<Action>

An enumerator for the collection.

GetHashCode()

Serves as a hash function for the ActionCollection type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current collection.

Overrides object.GetHashCode()

GetRange(int, int)

Returns a range of elements from the collection.

Declaration

cs-api-definition
public List<Action> GetRange(int index, int count)

Parameters

index

int

The zero-based starting index of the range.

count

int

The number of elements in the range.

Returns

List<Action>

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

IndexOf(Action)

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

Declaration

cs-api-definition
public int IndexOf(Action item)

Parameters

item

Action

The Action to locate.

Returns

int

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

Insert(int, Action)

Inserts an Action into the collection at the specified index.

Declaration

cs-api-definition
public void Insert(int index, Action item)

Parameters

index

int

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

item

Action

The Action to insert.

Remove(Action)

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

Declaration

cs-api-definition
public void Remove(Action item)

Parameters

item

Action

The Action to remove.

RemoveAt(int)

Removes the element at the specified index of the collection.

Declaration

cs-api-definition
public void RemoveAt(int index)

Parameters

index

int

The zero-based index of the element to remove.

RemoveRange(int, int)

Removes a range of elements from the collection.

Declaration

cs-api-definition
public void RemoveRange(int index, int count)

Parameters

index

int

The zero-based index at which removal begins.

count

int

The number of elements to remove.

Reverse()

Reverses the order of the elements in the collection.

Declaration

cs-api-definition
public void Reverse()