Compartir a través de


HPageBreaks.Add Method

Adds a horizontal page break. Returns an HPageBreak object.

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

Syntax

'Declaration
Function Add ( _
    Before As Object _
) As HPageBreak
'Usage
Dim instance As HPageBreaks
Dim Before As Object
Dim returnValue As HPageBreak

returnValue = instance.Add(Before)
HPageBreak Add(
    Object Before
)

Parameters

  • Before
    Type: System.Object

    Required Object. A Range object. The range above which the new page break will be added.

Return Value

Type: Microsoft.Office.Interop.Excel.HPageBreak

See Also

Reference

HPageBreaks Interface

HPageBreaks Members

Microsoft.Office.Interop.Excel Namespace