ParagraphFormat.TextDirection 属性 (PowerPoint)

返回或设置指定段落的文本方向。 读/写。

语法

expressionTextDirection

表达 一个代表 ParagraphFormat 对象的变量。

返回值

PpDirection

备注

默认值取决于已选择或安装的语言支持。

TextDirection 属性的值可以是其中一个 常量。

ppDirectionLeftToRight
ppDirectionMixed
ppDirectionRightToLeft

示例

本示例显示活动演示文稿中第一张幻灯片第二个形状中段落的文本方向。

MsgBox ActivePresentation.Slides(1).Shapes(2).TextFrame.TextRange _
    .ParagraphFormat.TextDirection

另请参阅

ParagraphFormat 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。