XmlMappedRange.PageBreak Property

Definition

Gets or sets the ___location of a page break.

public:
 property int PageBreak { int get(); void set(int value); };
public int PageBreak { get; set; }
member this.PageBreak : int with get, set
Public Property PageBreak As Integer

Property Value

Examples

The following code example uses the PageBreak property to set a page break at an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

private void SetPageBreak()
{
    this.CustomerLastNameCell.PageBreak = 
        (int)Excel.XlPageBreak.xlPageBreakManual;
}
Private Sub SetPageBreak()
    Me.CustomerLastNameCell.PageBreak = Excel.XlPageBreak.xlPageBreakManual
End Sub

Remarks

You can set this property using one of the following XlPageBreakvalues:

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).

Applies to