Share via


Range.InsertBreak Method 

Inserts a page, column, or section break.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim Type As Object
Dim range1 As Range
range1.InsertBreak(Type)

Syntax

Sub InsertBreak( _
    <InAttribute()> Optional ByRef Type As Object _
)
void InsertBreak(
    [In, Optional] ref object Type
);
public: Void InsertBreak(
    &Object^ Type
);
public void InsertBreak(
    /*in*/System.Object Type
);
function InsertBreak(
     Type : Object
);

Parameters

  • Type
    Optional Object. The type of break to be inserted. Can be one of the WdBreakType constants.

Remarks

When you insert a page or column break, the range is replaced by the break. If you don't want to replace the range, use the Collapse method before using the InsertBreak method. When you insert a section break, the break is inserted immediately preceding the Range object.

Some of the WdBreakType constants may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Range Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Range Members