New to Telerik UI for WinForms? Start a free 30-day trial

Holds permission entries for the editing-permissions UI and prevents duplicate case-sensitive name/type pairs.

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class PermissionInfoCollection : IEnumerable

Inheritance: objectPermissionInfoCollection

Implements: IEnumerable

Constructors

C#
public PermissionInfoCollection()

Properties

Gets the number of permission entries.

C#
public int Count { get; }

Gets whether the collection is read-only; this collection is mutable.

C#
public bool IsReadOnly { get; }

Methods

Adds a permission unless an entry with the same case-sensitive name and type is already present.

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

The permission entry to add.

Removes all permission entries.

C#
public void Clear()

Determines whether an entry with the same case-sensitive name and type is present.

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

The permission entry to find.

Returns:

bool

true if a matching entry is present; otherwise, false.

Copies the permission entries into an array starting at the specified index.

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

The destination array.

arrayIndexint

The zero-based destination index.

Enumerates the permission entries in collection order.

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

IEnumerator<PermissionInfo>

An enumerator over the permission entries.

Removes the matching permission entry.

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

The permission entry to remove.

Returns:

bool

true if an entry was removed; otherwise, false.