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

TextFrame.Orientation 属性 (发布服务器)TextFrame.Orientation Property (Publisher)

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

返回或设置一个PbTextOrientation常量,该常量表示文本在文本框中的排列方式。读/写。Returns or sets a PbTextOrientationconstant that represents how text flows in a text box. Read/write.

语法Syntax

表达式方向expression. Orientation

_expression_A 表示一个TextFrame对象的变量。_expression_A variable that represents a TextFrame object.

返回值Return Value

PbTextOrientationPbTextOrientation

注解Remarks

方向属性值可以是在 Microsoft 发布服务器类型库声明的PbTextOrientation常量之一。The Orientation property value can be one of the PbTextOrientation constants declared in the Microsoft Publisher type library.

示例Example

下面的示例将指定文本框中的文字方向设置为垂直,以便文字自上而下排列。这里假定当前出版物中的第一页上至少有一个形状。This example sets the text orientation in the specified text box to vertical so that text flows from top to bottom. This assumes there is at least one shape on page one of the active publication.

Sub SetVerticalTextBox() 
 ActiveDocument.Pages(1).Shapes(1).TextFrame _ 
 .Orientation = pbTextOrientationVerticalEastAsia 
End Sub
© 2018 Microsoft