Partager via


TextFrame2 Members

Include Protected Members
Include Inherited Members

Represents the text frame in a Shape, ShapeRange, or ChartFormat object.

The TextFrame2 type exposes the following members.

Properties

  Name Description
Public property Application (Inherited from _IMsoDispObj.)
Public property Application Returns an _Application object. Read-only.
Public property AutoSize The size of the specified object that changes automatically to fit text within its boundaries. Read/write.
Public property Column Returns the TextColumn2 object that represents the columns within the text frame. Read-only.
Public property Creator (Inherited from _IMsoDispObj.)
Public property Creator Returns a 32-bit integer that indicates the application in which this object was created. Read-only.
Public property HasText Returns whether the specified text frame has text. Read-only.
Public property HorizontalAnchor Returns or sets the horizontal anchor type for the specified text. 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 NoTextRotation Returns or sets a value that specifies if the text on a shape is rotated if the shape itself is being rotated. Read/write
Public property Orientation Returns or sets a value that represents the text frame orientation. Read/write.
Public property Parent Returns the parent object for the specified object. Read-only.
Public property PathFormat Returns or sets the path type for the specified text frame. Read/write.
Public property Ruler Returns the ruler for the specified text. Read-only.
Public property TextRange Returns the TextRange2 object that represents the text in the object. Read-only.
Public property ThreeD Returns a ThreeDFormat object that contains 3-D–effect formatting properties for the specified text. Read-only.
Public property VerticalAnchor Returns or sets the vertical anchor type for the specified text. Read/write.
Public property WarpFormat Returns or sets the warp type for the specified text frame. Read/write.
Public property WordArtformat Returns or sets the Word Art type for the specified text frame. Read/write.
Public property WordWrap Returns or sets text break lines within or past the boundaries of the shape. Read/write.

Top

Methods

  Name Description
Public method DeleteText Deletes the text from a text frame and all the associated text properties.

Top

See Also

Reference

TextFrame2 Interface

Microsoft.Office.Interop.Excel Namespace