Modifica

Condividi tramite


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

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

Returns an _Application object. Read-only.

AutoSize

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

Column

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

Creator

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

HasText

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

HorizontalAnchor

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

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

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

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

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

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

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

Parent

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

PathFormat

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

Ruler

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

TextRange

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

ThreeD

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

VerticalAnchor

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

WarpFormat

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

WordArtformat

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

WordWrap

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

Methods

DeleteText()

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

Applies to