Selection.InsertBefore Method
Inserts the specified text before the specified selection.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub InsertBefore ( _
Text As String _
)
'Usage
Dim instance As Selection
Dim Text As String
instance.InsertBefore(Text)
void InsertBefore(
string Text
)
Parameters
- Text
Type: System.String
Required String. The text to be inserted.
Remarks
After the text is inserted, the selection is expanded to include the new text. If the selection is a bookmark, the bookmark is also expanded to include the next text.