[]
Gets the IVPageBreak at the specified index in the collection.
Use this property to access a vertical page break that has been added to the worksheet print area through Add(IRange) or other worksheet page break operations.
IVPageBreak this[int Index] { get; }
ReadOnly Default Property Item(Index As Integer) As IVPageBreak
| Type | Name | Description |
|---|---|---|
| int | Index | The index of the collection. |
worksheet.Range["A1:F3"].Value = new object[,] {
{"Name", "Q1", "Q2", "Q3", "Q4", "Total"},
{"North", 100, 120, 110, 130, 460}
});
IVPageBreaks pageBreaks = worksheet.VPageBreaks;
pageBreaks.Add(worksheet.Range["D1"]);
IVPageBreak pageBreak = pageBreaks[0];
IRange location = pageBreak.Location;