TextRange.InsertBefore Method

Appends a string to the beginning of the specified text range. Returns a TextRange object that represents the appended text. When used without an argument, this method returns a zero-length string at the end of the specified range.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Function InsertBefore ( _
    NewText As String _
) As TextRange
'Usage
Dim instance As TextRange
Dim NewText As String
Dim returnValue As TextRange

returnValue = instance.InsertBefore(NewText)
TextRange InsertBefore(
    string NewText
)

Parameters

  • NewText
    Type: System.String
    The text to be appended. The default value is an empty string.

Return Value

Type: Microsoft.Office.Interop.PowerPoint.TextRange

See Also

Reference

TextRange Interface

TextRange Members

Microsoft.Office.Interop.PowerPoint Namespace