[]
Gets the IHPageBreak by index.
The index is zero-based. An IndexOutOfRangeException is thrown if the index is outside the collection.
IHPageBreak this[int Index] { get; }
ReadOnly Default Property Item(Index As Integer) As IHPageBreak
| Type | Name | Description |
|---|---|---|
| int | Index | The zero-based index of the horizontal page break. |
worksheet.HPageBreaks.Add(worksheet.Range["A4"]);
IHPageBreak pageBreak = worksheet.HPageBreaks[0];
| Type | Condition |
|---|---|
| IndexOutOfRangeException | The index is outside the collection. |