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
-
ExcelProtectedRangeCollection
- Implements
- Inherited Members
Properties
Count
Numner of items in the collection
public int Count { get; }
Property Value
this[int]
Indexer for the collection
public ExcelProtectedRange this[int index] { get; }
Parameters
index
intThe index to return
Property Value
Methods
Add(string, ExcelAddress)
Adds a new protected range
public ExcelProtectedRange Add(string name, ExcelAddress address)
Parameters
name
stringThe name of the protected range
address
ExcelAddressThe address within the worksheet
Returns
Clear()
Clears all protected ranges
public void Clear()
Contains(ExcelProtectedRange)
Checks if the collection contains a specific item.
public bool Contains(ExcelProtectedRange 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.
public void CopyTo(ExcelProtectedRange[] array, int arrayIndex)
Parameters
array
ExcelProtectedRange[]The array
arrayIndex
intThe index
IndexOf(ExcelProtectedRange)
Get the index in the collection of the supplied item
public int IndexOf(ExcelProtectedRange item)
Parameters
item
ExcelProtectedRangeThe item
Returns
Remove(ExcelProtectedRange)
Remove the specified item from the collection
public bool Remove(ExcelProtectedRange item)
Parameters
item
ExcelProtectedRangeThe item
Returns
RemoveAt(int)
Remove the item at the specified indexx
public void RemoveAt(int index)
Parameters
index
int