NamedRange.PageBreak Property
Visual Studio 2012
Gets or sets the location of a page break.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
You can set this property using one of the following XlPageBreak values:
This property can return the location of either automatic or manual page breaks, but it can only set the location of manual breaks (it can only be set to xlPageBreakManual or xlPageBreakNone).
The following code example creates a NamedRange and then uses the PageBreak property to set a page break at the NamedRange.
This example is for a document-level customization.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.