TextFrame2 Object
PowerPoint Developer Reference |
Represents the text frame in a Shape or ShapeRange object. Contains the text in the text frame and exposes properties and methods that control the alignment and anchoring of the text frame.
Remarks
Use the TextFrame2 property of the Shape and ShapeRange objects to return a TextFrame2 object.
Use the HasTextFrame property to determine whether a shape or shape range has a text frame, and use the HasText property to determine whether the text frame contains text.
Example
The following example adds a rectangle to a slide, adds text to the rectangle, and then sets the margins for the text frame.
Visual Basic for Applications |
---|
|
The following example shows how to use the HasTextFrame property to determine whether a shape has a text frame, and then how to use the HasText property to determine whether the text frame contains text.
Visual Basic for Applications |
---|
|
See Also