Поделиться через


ShapeRange.TextFrame2 Property

Returns the TextFrame2 object associated with the specified ShapeRange object that contains the alignment and anchoring properties for the specified shape range. Read-only.

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

Syntax

'Declaration
ReadOnly Property TextFrame2 As TextFrame2
    Get
'Usage
Dim instance As ShapeRange
Dim value As TextFrame2

value = instance.TextFrame2
TextFrame2 TextFrame2 { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.TextFrame2

Remarks

Use the TextRange property of the TextFrame2 object to return the text in the text frame.

Use the HasTextFrame property to determine whether a shape contains a text frame before you attempt to get the TextFrame2 property value.

See Also

Reference

ShapeRange Interface

ShapeRange Members

Microsoft.Office.Interop.PowerPoint Namespace