Aspose::Cells::IProtectedRangeCollection Class Referenceabstract

Encapsulates a collection of IProtectedRange objects. More...

Inherits CollectionBase.

Public Member Functions

virtual intrusive_ptr< Aspose::Cells::IProtectedRangeGetObjectByIndex (Aspose::Cells::Systems::Int32 index)=0
 Gets the IProtectedRange element at the specified index. More...
 
virtual Aspose::Cells::Systems::Int32 Add (intrusive_ptr< Aspose::Cells::Systems::String > name, Aspose::Cells::Systems::Int32 startRow, Aspose::Cells::Systems::Int32 startColumn, Aspose::Cells::Systems::Int32 endRow, Aspose::Cells::Systems::Int32 endColumn)=0
 Adds a IProtectedRange item to the collection. More...
 

Detailed Description

Encapsulates a collection of IProtectedRange objects.

Member Function Documentation

◆ Add()

virtual Aspose::Cells::Systems::Int32 Aspose::Cells::IProtectedRangeCollection::Add ( intrusive_ptr< Aspose::Cells::Systems::String >  name,
Aspose::Cells::Systems::Int32  startRow,
Aspose::Cells::Systems::Int32  startColumn,
Aspose::Cells::Systems::Int32  endRow,
Aspose::Cells::Systems::Int32  endColumn 
)
pure virtual

Adds a IProtectedRange item to the collection.

Parameters
nameRange title. This is used as a descriptor, not as a named range definition.
startRowStart row index of the range.
startColumnStart column index of the range.
endRowEnd row index of the range.
endColumnEnd column index of the range.
Returns
object index.

◆ GetObjectByIndex()

virtual intrusive_ptr<Aspose::Cells::IProtectedRange> Aspose::Cells::IProtectedRangeCollection::GetObjectByIndex ( Aspose::Cells::Systems::Int32  index)
pure virtual

Gets the IProtectedRange element at the specified index.

Parameters
indexThe zero based index of the element.
Returns
The element at the specified index.