Paragraphs.Add Method 

Returns a Paragraph object that represents a new, blank paragraph 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 returnValue As Paragraph
Dim paragraphs1 As Paragraphs
returnValue = paragraphs1.Add(Range)

Syntax

Function Add( _
    <InAttribute()> Optional ByRef Range As Object _
) As Paragraph
Paragraph Add(
    [In, Optional] ref object Range
);
public: Paragraph^ Add(
    &Object^ Range
);
public Paragraph Add(
    /*in*/System.Object Range
);
function Add(
     Range : Object
) : Paragraph;

Parameters

  • Range
    Optional Object. The range before which you want the new paragraph to be added. The new paragraph doesn't replace the range.

Remarks

If Range isn't specified, the new paragraph is added after the selection or range or at the end of the document.

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

Paragraphs Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Paragraphs Members