다음을 통해 공유


Shape.TextFrame2 Property

Returns the TextFrame2 object that is associated with the specified Shape object that contains the alignment and anchoring properties for the specified shape. 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 Shape
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.

See Also

Reference

Shape Interface

Shape Members

Microsoft.Office.Interop.PowerPoint Namespace