ShapeRange.MoveOutOfTextFlow Method (Publisher)

Moves a given inline shape out of its containing text range, defined by ** TextRange Object**, and makes the shape fixed.


expression. MoveOutOfTextFlow

expression A variable that represents a ShapeRange object.

Return Value



An automation error is returned if the shape to be moved is not already inline.

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.


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) _