Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

Sections.Add Method

Returns a Section object that represents a new section added to a document.

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

'Usage
Dim Range As Object
Dim Start As Object
Dim returnValue As Section
Dim sections1 As Sections
returnValue = sections1.Add(Range, Start)

Section Add(
	[In, Optional] ref object Range, 
	[In, Optional] ref object Start
);
public Section Add(
	/*in*/System.Object Range, 
	/*in*/System.Object Start
);
function Add(
	 Range : Object, 
	 Start : Object
) : Section;

Parameters

Range

Optional Object. The range before which you want to insert the section break. If this argument is omitted, the section break is inserted at the end of the document.

Start

Optional Object. The type of section break you want to add. Can be one of the following WdSectionStartconstants: wdSectionContinuous, wdSectionEvenPage, wdSectionNewColumn, wdSectionNewPage, or wdSectionOddPage. If this argument is omitted, a Next Page section break is added.

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

Development Platforms

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

Target Platforms

Anzeigen: