ShapeRange.ZOrder Method

Moves the specified shape in front of or behind other shapes in the collection (that is, changes the shape's position in the z-order).

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub ZOrder ( _
    ZOrderCmd As MsoZOrderCmd _
)
'Usage
Dim instance As ShapeRange
Dim ZOrderCmd As MsoZOrderCmd

instance.ZOrder(ZOrderCmd)
void ZOrder(
    MsoZOrderCmd ZOrderCmd
)

Parameters

  • ZOrderCmd
    Type: MsoZOrderCmd
    Required MsoZOrderCmd. Specifies where to move the specified shape relative to the other shapes.
    MsoZOrderCmd can be one of the following constants:
    msoBringForward
    msoBringInFrontOfText
    msoBringToFront
    msoSendBackward
    msoSendBehindText
    msoSendToBack

Remarks

Use the ZOrderPosition property to determine a shape's current position in the z-order.

See Also

Reference

ShapeRange Interface

ShapeRange Members

Microsoft.Office.Interop.Word Namespace