Share via


Selection.TextRange Property

Returns a TextRange object that represents the selected text. 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 Selection
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

Selection Interface

Selection Members

Microsoft.Office.Interop.PowerPoint Namespace