Share via


TextFrame.TextRange Property

Returns a TextRange object that represents the text in the specified text frame. Read-only.

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

Syntax

'Declaration
ReadOnly Property TextRange As TextRange
    Get
'Usage
Dim instance As TextFrame
Dim value As TextRange

value = instance.TextRange
TextRange TextRange { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.TextRange
TextRange

Remarks

You can construct a text range from a selection when the presentation is in slide view, normal view, outline view, notes page view, or any master view.

Examples

This example makes the selected text bold in the first window.

Windows(1).Selection.TextRange.Font.Bold = True

See Also

Reference

TextFrame Interface

TextFrame Members

Microsoft.Office.Interop.PowerPoint Namespace