NativeExcel for .Net Developer's Reference

IWorksheet.VPageBreaks Property

Returns an IPageBreaks interface that represents the vertical page breaks on the worksheet.

[Visual Basic]
PropertyReadOnlyVPageBreaksAsIPageBreaks
[C#]
IPageBreaksVPageBreaks{get;}
[C++]
__propertyIPageBreaks*get_VPageBreaks();
[JScript]
functiongetVPageBreaks():IPageBreaks

Property Value

IPageBreaks interface.

Example

This example adds vertical page break before column six.

[C#]
book.Worksheets[1].VPageBreaks.Add(6);
[VisualBasic]
book.Worksheets(1).VPageBreaks.Add(6) 
[C++]
book->Worksheets->Item[1]->VPageBreaks->Add(6); 
This example displays the number of vertical page breaks on worksheet one.
[C#]
Console.WriteLine(book.Worksheets[1].VPageBreaks.Count); 
[VisualBasic]
Console.WriteLine(book.Worksheets(1).VPageBreaks.Count) 
[C++]
Console::WriteLine(book->Worksheets->Item[1]->VPageBreaks->Count); 

See Also

IWorksheet Interface | NativeExcel Namespace | HPageBreaks Property | IPageBreaks Interface | ResetAllPageBreaks Method