ExpertXls Excel Library for .NET
AddPageBreak Method (locationRange)
Namespaces ► ExpertXls.ExcelLib ► ExcelPageBreaksCollection ► AddPageBreak(ExcelRange)
ExpertXls Excel Library for .NET
Adds a page break to the specified location in worksheet. For a horizontal page breaks collection the break is inserted in worksheet at the top edge of the range, for a vertical pae breaks collection the break is inserted at the left edge of the range.
Declaration Syntax

C# | Visual Basic | Visual C++

    public ExcelPageBreak AddPageBreak(
    	ExcelRange locationRange
    )

    Public Function AddPageBreak ( _
    	locationRange As ExcelRange _
    ) As ExcelPageBreak

    public:
    ExcelPageBreak^ AddPageBreak(
    	ExcelRange^ locationRange
    )

Parameters

locationRange (ExcelRange)
  The page break location.

Return Value
The newly added page break.

Assembly: ExpertXls.ExcelLib (Module: ExpertXls.ExcelLib) Version: 2.1.0.0 (2.1.0.0)