TextFrame2 TextFrame2 TextFrame2 Interface

Definition

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

public interface class TextFrame2 : Microsoft::Office::Core::_IMsoDispObj
[System.Runtime.InteropServices.Guid("000C0398-0000-0000-C000-000000000046")]
public interface TextFrame2 : Microsoft.Office.Core._IMsoDispObj
Public Interface TextFrame2
Implements _IMsoDispObj
Attributes
Implements
Microsoft.Office.Core._IMsoDispObjMicrosoft.Office.Core._IMsoDispObjMicrosoft.Office.Core._IMsoDispObj

Remarks

This 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. Use the TextFrame2 property to return a TextFrame2 object.

Properties

Application Application Application

Returns an _Application object. Read-only.

AutoSize AutoSize AutoSize

The size of the specified object that changes automatically to fit text within its boundaries. Read/write.

Column Column Column

Returns the Microsoft.Office.Core.TextColumn2 object that represents the columns within the text frame. Read-only.

Creator Creator Creator

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

HasText HasText HasText

Returns whether the specified text frame has text. Read-only.

HorizontalAnchor HorizontalAnchor HorizontalAnchor

Returns or sets the horizontal anchor type for the specified text. Read/write.

MarginBottom MarginBottom 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.

MarginLeft MarginLeft 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.

MarginRight MarginRight 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.

MarginTop MarginTop 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.

NoTextRotation NoTextRotation 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

Orientation Orientation Orientation

Returns or sets a value that represents the text frame orientation. Read/write.

Parent Parent Parent

Returns the parent object for the specified object. Read-only.

PathFormat PathFormat PathFormat

Returns or sets the path type for the specified text frame. Read/write.

Ruler Ruler Ruler

Returns the ruler for the specified text. Read-only.

TextRange TextRange TextRange

Returns the Microsoft.Office.Core.TextRange2 object that represents the text in the object. Read-only.

ThreeD ThreeD ThreeD

Returns a ThreeDFormat object that contains 3-D–effect formatting properties for the specified text. Read-only.

VerticalAnchor VerticalAnchor VerticalAnchor

Returns or sets the vertical anchor type for the specified text. Read/write.

WarpFormat WarpFormat WarpFormat

Returns or sets the warp type for the specified text frame. Read/write.

WordArtformat WordArtformat WordArtformat

Returns or sets the Word Art type for the specified text frame. Read/write.

WordWrap WordWrap WordWrap

Returns or sets text break lines within or past the boundaries of the shape. Read/write.

Methods

DeleteText() DeleteText() DeleteText()

Deletes the text from a text frame and all the associated text properties.

Applies to