Selection.InsertParagraph MethodÂ
Replaces the specified selection with a new paragraph.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim selection1 As Selection
selection1.InsertParagraph()
Syntax
Sub InsertParagraph()
void InsertParagraph();
public: Void InsertParagraph();
public void InsertParagraph();
function InsertParagraph();
Remarks
After this method has been used, the selection is the new paragraph.
If you don't want to replace the range or selection, use the Collapse method before using this method. The InsertParagraphAfter method inserts a new paragraph following a Selection object.
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