TextFrame Interface

Definition

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.

public interface class TextFrame
[System.Runtime.InteropServices.Guid("0002443D-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface TextFrame
Public Interface TextFrame
Attributes

Properties

Application

Returns an Application object that represents the Microsoft Excel application.

AutoMargins

True if Microsoft Excel automatically calculates text frame margins.

AutoSize

True if the size of the specified object is changed automatically to fit text within its boundaries.

Creator

Returns a 32-bit integer that indicates the application in which this object was created.

HorizontalAlignment

Returns or sets the horizontal alignment for the specified object.

HorizontalOverflow

Gets or sets the horizontal overflow setting for the specified object.

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.

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.

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.

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.

Orientation

The text frame orientation.

Parent

Returns the parent object for the specified object.

ReadingOrder

Returns or sets the reading order for the specified object.

VerticalAlignment

Returns or sets the vertical alignment of the specified object.

VerticalOverflow

Gets or sets the vertical overflow setting for the specified object.

Methods

Characters(Object, Object)

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

Applies to