Partager via


TextFrame Members

Include Protected Members
Include Inherited Members

Represents the text frame in a Shape object. Contains the text in the text frame as well as 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 Microsoft Excel application.
Public property AutoMargins True if Microsoft Excel automatically calculates text frame margins.
Public property AutoSize True if the size of the specified object is changed automatically to fit text within its boundaries.
Public property Creator Returns a 32-bit integer that indicates the application in which this object was created.
Public property HorizontalAlignment Returns or sets the horizontal alignment for the specified object.
Public property HorizontalOverflow Gets or sets the horizontal overflow setting for the specified object.
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.
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.
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.
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.
Public property Orientation The text frame orientation.
Public property Parent Returns the parent object for the specified object.
Public property ReadingOrder Returns or sets the reading order for the specified object.
Public property VerticalAlignment Returns or sets the vertical alignment of the specified object.
Public property VerticalOverflow Gets or sets the vertical overflow setting for the specified object.

Top

Methods

  Name Description
Public method Characters Returns a Characters object that represents a range of characters within a shape’s text frame.

Top

See Also

Reference

TextFrame Interface

Microsoft.Office.Interop.Excel Namespace