[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IHPageBreaks.Item

this Property

this[int]

Gets the IHPageBreak by index.

The index is zero-based. An IndexOutOfRangeException is thrown if the index is outside the collection.

Declaration
IHPageBreak this[int Index] { get; }
ReadOnly Default Property Item(Index As Integer) As IHPageBreak
Parameters
Type Name Description
int Index

The zero-based index of the horizontal page break.

Examples
worksheet.HPageBreaks.Add(worksheet.Range["A4"]);
IHPageBreak pageBreak = worksheet.HPageBreaks[0];
Exceptions
Type Condition
IndexOutOfRangeException

The index is outside the collection.