Class PermissionInfoCollection
Represents a collection of permission information for document elements.
Inheritance
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class PermissionInfoCollection : Object, ICollection<PermissionInfo>, IEnumerable<PermissionInfo>, IEnumerable
Constructors
PermissionInfoCollection()
Declaration
public PermissionInfoCollection()
Properties
Count
Gets the number of elements contained in the PermissionInfoCollection.
Declaration
public int Count { get; }
Property Value
System.Int32
|
IsReadOnly
Gets a value that indicates whether the collection is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
System.Boolean
|
Methods
Add(PermissionInfo)
Adds a new PermissionInfo object to the collection.
Declaration
public void Add(PermissionInfo item)
Parameters
PermissionInfo
item
The PermissionInfo object to be added to the collection. |
Clear()
Removes all elements from the PermissionInfoCollection.
Declaration
public void Clear()
Remarks
This method clears the collection, leaving it empty.
Contains(PermissionInfo)
Determines whether the collection contains a specified permission information object.
Declaration
public bool Contains(PermissionInfo item)
Parameters
PermissionInfo
item
The permission information object to locate in the collection. |
Returns
System.Boolean
True if the collection contains an element with the specified permission information; otherwise, false. |
CopyTo(PermissionInfo[], Int32)
Copies the elements of the PermissionInfoCollection to a specified one-dimensional array, starting at the specified array index.
Declaration
public void CopyTo(PermissionInfo[] array, int arrayIndex)
Parameters
PermissionInfo[]
array
The one-dimensional array that is the destination of the elements copied from PermissionInfoCollection. |
System.Int32
arrayIndex
The zero-based index at which copying begins. |
GetEnumerator()
Returns an enumerator that iterates through the PermissionInfoCollection.
Declaration
public IEnumerator<PermissionInfo> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<PermissionInfo>
An enumerator positioned before the first element in the PermissionInfoCollection. |
Remove(PermissionInfo)
Removes the specified PermissionInfo object from the collection.
Declaration
public bool Remove(PermissionInfo item)
Parameters
PermissionInfo
item
The PermissionInfo object to be removed from the collection. |
Returns
System.Boolean
Returns true if the specified PermissionInfo was successfully removed; otherwise, false. |