Compartir a través de


TextFrame Members

Include Protected Members
Include Inherited Members

Represents the text frame in a Shape object. Contains the text in the text frame and the properties and methods that control the alignment and anchoring of the text frame.

The TextFrame type exposes the following members.

Properties

  Name Description
Public property Application Returns an Application object that represents the creator of the specified object.
Public property AutoSize Returns or sets a value that indicates whether the size of the specified shape is changed automatically to fit text within its boundaries. Read/write.
Public property Creator Returns a 64-bit signed integer that represents the four-character creator code for the application in which the specified object was created. For example, if the object was created in Microsoft PowerPoint, this property returns the hexadecimal number 50575054. Read-only.
Public property HasText Returns whether the specified shape has text associated with it. Read-only.
Public property HorizontalAnchor Returns or sets the horizontal alignment of text in a text frame. Read/write.
Public property MarginBottom Returns or sets the distance (in points) between the bottom of the text frame and the bottom of the inscribed rectangle of the shape that contains the text. Read/write.
Public property MarginLeft Returns or sets the distance (in points) between the left edge of the text frame and the left edge of the inscribed rectangle of the shape that contains the text. Read/write.
Public property MarginRight Returns or sets the distance (in points) between the right edge of the text frame and the right edge of the inscribed rectangle of the shape that contains the text. Read/write.
Public property MarginTop Returns or sets the distance (in points) between the top of the text frame and the top of the inscribed rectangle of the shape that contains the text. Read/write.
Public property Orientation Returns or sets text orientation. Read/write.
Public property Parent Returns the parent object for the specified object.
Public property Ruler Returns a Ruler object that represents the ruler for the specified text. Read-only.
Public property TextRange Returns a TextRange object that represents the text in the specified text frame. Read-only.
Public property VerticalAnchor Returns or sets the vertical alignment of text in a text frame. Read/write.
Public property WordWrap Determines whether lines break automatically to fit inside the shape. Read/write.

Top

Methods

  Name Description
Public method DeleteText Deletes the text associated with the specified shape.

Top

See Also

Reference

TextFrame Interface

Microsoft.Office.Interop.PowerPoint Namespace