Table of contents
TOC
折叠目录
展开目录

TextFrame.WordWrap 属性 (PowerPoint)TextFrame.WordWrap Property (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

确定是否自动换行以适应形状内部。可读/写。Determines whether lines break automatically to fit inside the shape. Read/write.

语法Syntax

表达式自动换行expression. WordWrap

表达式_一个表示一个TextFrame对象的变量。_expression A variable that represents a TextFrame object.

返回值Return Value

MsoTriStateMsoTriState

注解Remarks

自动换行属性的值可以是其中一个MsoTriState常量。The value of the WordWrap property can be one of these MsoTriState constants.

常量Constant说明Description
msoFalsemsoFalse不为适应形状内部而自动换行。Lines do not break automatically to fit inside the shape.
属性值为 msoTruemsoTrue自动换行以适应形状内部。Lines break automatically to fit inside the shape.

示例Example

本示例将添加一个包含文本的矩形myDocument,然后关闭新的矩形中的文本换行。This example adds a rectangle that contains text to myDocument and then turns off word wrapping in the new rectangle.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes.AddShape(msoShapeRectangle, _
        0, 0, 100, 300).TextFrame
    .TextRange.Text = _
        "Here is some test text that is too long for this box"
    .WordWrap = False
End With

另请参阅See also

概念Concepts

TextFrame 对象TextFrame Object

© 2018 Microsoft