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

Represents a collection of permission information for document elements.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class PermissionInfoCollection : ICollection<PermissionInfo>, IEnumerable<PermissionInfo>, IEnumerable

Inheritance: objectPermissionInfoCollection

Implements: ICollection<PermissionInfo>IEnumerableIEnumerable<PermissionInfo>

Constructors

C#
public PermissionInfoCollection()

Properties

Gets the number of elements contained in the PermissionInfoCollection.

C#
public int Count { get; }

Implements: ICollection<PermissionInfo>.Count

Gets a value that indicates whether the collection is read-only.

C#
public bool IsReadOnly { get; }

Implements: ICollection<PermissionInfo>.IsReadOnly

Methods

Adds a new PermissionInfo object to the collection.

C#
public void Add(PermissionInfo item)
Parameters:itemPermissionInfo

The PermissionInfo object to be added to the collection.

Implements: ICollection<PermissionInfo>.Add(PermissionInfo)

Removes all elements from the PermissionInfoCollection.

C#
public void Clear()

Implements: ICollection<PermissionInfo>.Clear()

Remarks:

This method clears the collection, leaving it empty.

Determines whether the collection contains a specified permission information object.

C#
public bool Contains(PermissionInfo item)
Parameters:itemPermissionInfo

The permission information object to locate in the collection.

Returns:

bool

True if the collection contains an element with the specified permission information; otherwise, false.

Implements: ICollection<PermissionInfo>.Contains(PermissionInfo)

Copies the elements of the PermissionInfoCollection to a specified one-dimensional array, starting at the specified array index.

C#
public void CopyTo(PermissionInfo[] array, int arrayIndex)
Parameters:arrayPermissionInfo[]

The one-dimensional array that is the destination of the elements copied from PermissionInfoCollection.

arrayIndexint

The zero-based index at which copying begins.

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

Returns an enumerator that iterates through the PermissionInfoCollection.

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

IEnumerator<PermissionInfo>

An enumerator positioned before the first element in the PermissionInfoCollection.

Implements: IEnumerable<PermissionInfo>.GetEnumerator()

Removes the specified PermissionInfo object from the collection.

C#
public bool Remove(PermissionInfo item)
Parameters:itemPermissionInfo

The PermissionInfo object to be removed from the collection.

Returns:

bool

Returns true if the specified PermissionInfo was successfully removed; otherwise, false.

Implements: ICollection<PermissionInfo>.Remove(PermissionInfo)