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)
Syntax
Function Add( _
<InAttribute()> Optional ByRef Range As Object, _
<InAttribute()> Optional ByRef Start As Object _
) As Section
Section Add(
[In, Optional] ref object Range,
[In, Optional] ref object Start
);
public: Section^ Add(
&Object^ Range,
&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 WdSectionStart****constants: wdSectionContinuous, wdSectionEvenPage, wdSectionNewColumn, wdSectionNewPage, or wdSectionOddPage. If this argument is omitted, a Next Page section break is added.
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
Sections Interface
Microsoft.Office.Interop.Word Namespace