Skip to main content
Row

ProtectedRangeCollection Members

A collection of items which associate worksheet ranges and security information required to unlock them for editing.

Properties

Name Description
Count Gets the number of elements contained in the ICollection. Inherited from ICollection.
IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe). Inherited from ICollection.
SyncRoot Gets an object that can be used to synchronize access to the ICollection. Inherited from ICollection.

Methods

Name Description
Add(String, CellRange) Creates a new protected range and adds it to the collection.
Add(String, IList<CellRange>) Creates a protected range and adds it to a worksheet collection of protected ranges.
Add(String, String) Creates a new protected range and adds it to the collection.
Clear() Removes all items from a collection thus clearing protection ranges in a worksheet.
Contains(ProtectedRange) Determines whether the collection contains the specified protected range.
Contains(String) Determines whether the collection contains the protected range with the specified name.
CopyTo(Array, Int32) Copies the elements of the ICollection to an Array, starting at a particular Array index. Inherited from ICollection.
GetEnumerator() Returns an enumerator that iterates through the collection. Inherited from IEnumerable<T>.
Remove(ProtectedRange) Removes the specified protected range from a collection.
Remove(String) Removes the specified protected range from a collection.
RemoveAt(Int32) Removes the element at the specified index of the ProtectedRangeCollection instance.
See Also