Partager via


VPageBreaks Interface

A collection of vertical page breaks within the print area. Each vertical page break is represented by a VPageBreak object.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
<GuidAttribute("00024405-0000-0000-C000-000000000046")> _
<InterfaceTypeAttribute()> _
Public Interface VPageBreaks _
    Inherits IEnumerable
'Usage
Dim instance As VPageBreaks
[GuidAttribute("00024405-0000-0000-C000-000000000046")]
[InterfaceTypeAttribute()]
public interface VPageBreaks : IEnumerable

Remarks

Use the VPageBreaks property to return the VPageBreaks collection. Use the Add method to add a vertical page break.

If you add a page break that does not intersect the print area, then the newly-added VPageBreak object will not appear in the VPageBreaks collection for the print area. The contents of the collection may change if the print area is resized or redefined.

When the Application property, Count property, Creator property, Item property, Parent property or Add method is used in conjunction with the VPageBreaks property:

For an automatic print area, the VPageBreaks property applies only to the page breaks within the print area.

For a user-defined print area of the same range, the VPageBreaks property applies to all of the page breaks.

See Also

Reference

VPageBreaks Members

Microsoft.Office.Interop.Excel Namespace