Click or drag to resize

ProtectedRangeCollection Class

Represents a collection of all protected ranges on the ExcelWorksheet.
Inheritance Hierarchy
SystemObject
  GemBox.SpreadsheetProtectedRangeCollection

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1132
Syntax
public sealed class ProtectedRangeCollection : IEnumerable<ProtectedRange>, 
	IEnumerable

The ProtectedRangeCollection type exposes the following members.

Properties
  NameDescription
Public propertyCount
Gets the number of ProtectedRanges actually contained in the ProtectedRangeCollection.
Public propertyItemInt32
Gets the ProtectedRange at the specified index.
Public propertyItemString
Gets the ProtectedRange with the specified title or .
Top
Methods
  NameDescription
Public methodAddNew(String, String)
Adds the new ProtectedRange to the current ExcelWorksheet.
Public methodAddNew(String, String, String)
Adds the new ProtectedRange to the current ExcelWorksheet.
Public methodClear
Removes all ProtectedRanges from the current ExcelWorksheet.
Public methodGetEnumerator
Returns an enumerator that iterates through the ProtectedRangeCollection.
Public methodRemoveAt
Removes the ProtectedRange at the specified index of the ProtectedRangeCollection.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through the ProtectedRangeCollection.
Top
See Also