Class ExcelProtectedRangeCollection¶
Namespace: OfficeOpenXml
Assembly: EPPlus.dll
A collection of protected ranges in the worksheet. ExcelProtection ExcelSheetProtection ExcelEncryption
public class ExcelProtectedRangeCollection : XmlHelper, IEnumerable<ExcelProtectedRange>, IEnumerable
Inheritance¶
object ← XmlHelper ← ExcelProtectedRangeCollection
Implements¶
IEnumerable
IEnumerable<ExcelProtectedRange>
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Properties¶
Count¶
Numner of items in the collection
Property Value¶
this[int]¶
Indexer for the collection
Property Value¶
Methods¶
Add(string, ExcelAddress)¶
Adds a new protected range
Parameters¶
name string
The name of the protected range
address ExcelAddress
The address within the worksheet
Returns¶
Clear()¶
Clears all protected ranges
Contains(ExcelProtectedRange)¶
Checks if the collection contains a specific item.
Parameters¶
item ExcelProtectedRange
Returns¶
CopyTo(ExcelProtectedRange[], int)¶
Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.
Parameters¶
array ExcelProtectedRange[]
The array
arrayIndex int
The index
IndexOf(ExcelProtectedRange)¶
Get the index in the collection of the supplied item
Parameters¶
item ExcelProtectedRange
The item
Returns¶
Remove(ExcelProtectedRange)¶
Remove the specified item from the collection
Parameters¶
item ExcelProtectedRange
The item
Returns¶
RemoveAt(int)¶
Remove the item at the specified indexx
Parameters¶
index int