[]
Returns the number of objects in the collection.
This property returns the number of vertical page breaks contained in this collection within the print area.
int Count { get; }
ReadOnly Property Count As Integer
IVPageBreaks pageBreaks = worksheet.VPageBreaks;
pageBreaks.Add(worksheet.Range["C1"]);
pageBreaks.Add(worksheet.Range["F1"]);
int count = pageBreaks.Count;