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

ShapeRange.MoveOutOfTextFlow 方法 (发布服务器)ShapeRange.MoveOutOfTextFlow Method (Publisher)

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

移动指定的嵌入形状从其包含的文本范围,由 * * TextRange 对象* ,并使该形状固定。Moves a given inline shape out of its containing text range, defined by ** TextRange Object*, and makes the shape fixed.

语法Syntax

表达式MoveOutOfTextFlowexpression. MoveOutOfTextFlow

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

返回值Return Value

Nothing

注解Remarks

若要移动的形状尚未嵌入,则返回自动化错误。An automation error is returned if the shape to be moved is not already inline.

内嵌形状调用MoveOutOfTextFlow方法后,形状将保留在页上的位置但它将不再是内联。After the MoveOutOfTextFlow method is called on an inline shape, the shape will maintain its position on the page, but it will no longer be inline.

示例Example

以下示例将指定文字范围中包含的嵌入形状从文字排列中移出。The following example moves the first inline shape contained in a given text range out of the text flow.

Dim theShape As Shape 

Set theShape = ActiveDocument.Pages(2).Shapes(1) _ 
 .TextFrame.TextRange.InlineShapes(1) 

theShape.MoveOutOfTextFlow
© 2018 Microsoft