Class
PermissionInfoCollection

Represents a collection of permission information for document elements.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class PermissionInfoCollection : ICollection<PermissionInfo>, IEnumerable<PermissionInfo>, IEnumerable

Inheritance: objectPermissionInfoCollection

Implements: ICollection<PermissionInfo>IEnumerableIEnumerable<PermissionInfo>

Constructors

PermissionInfoCollection()

Declaration

cs-api-definition
public PermissionInfoCollection()

Properties

Count

Gets the number of elements contained in the PermissionInfoCollection.

Declaration

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

Property Value

int

Implements ICollection<PermissionInfo>.Count

IsReadOnly

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

Declaration

cs-api-definition
public bool IsReadOnly { get; }

Property Value

bool

Implements ICollection<PermissionInfo>.IsReadOnly

Methods

Add(PermissionInfo)

Adds a new PermissionInfo object to the collection.

Declaration

cs-api-definition
public void Add(PermissionInfo item)

Parameters

item

PermissionInfo

The PermissionInfo object to be added to the collection.

Implements ICollection<PermissionInfo>.Add(PermissionInfo)

Clear()

Removes all elements from the PermissionInfoCollection.

Declaration

cs-api-definition
public void Clear()

Implements ICollection<PermissionInfo>.Clear()

Remarks

This method clears the collection, leaving it empty.

Contains(PermissionInfo)

Determines whether the collection contains a specified permission information object.

Declaration

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

Parameters

item

PermissionInfo

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)

CopyTo(PermissionInfo[], int)

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

Declaration

cs-api-definition
public void CopyTo(PermissionInfo[] array, int arrayIndex)

Parameters

array

PermissionInfo[]

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

arrayIndex

int

The zero-based index at which copying begins.

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

GetEnumerator()

Returns an enumerator that iterates through the PermissionInfoCollection.

Declaration

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

Returns

IEnumerator<PermissionInfo>

An enumerator positioned before the first element in the PermissionInfoCollection.

Implements IEnumerable<PermissionInfo>.GetEnumerator()

Remove(PermissionInfo)

Removes the specified PermissionInfo object from the collection.

Declaration

cs-api-definition
public bool Remove(PermissionInfo item)

Parameters

item

PermissionInfo

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)