Selection.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 selection1 As Selection
selection1.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. WdBreakType
Remarks
When you insert a page or column break, the selection is replaced by the break. If you don't want to replace the selection, use the Collapse method before using the InsertBreak method. When you insert a section break, the break is inserted immediately preceding the Selection 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
Selection Interface
Microsoft.Office.Interop.Word Namespace