[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IVPageBreaks.Item

this Property

this[int]

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.

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

The index of the collection.

Examples
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;