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)

Usage

Dim ZOrderCmd As MsoZOrderCmd
Dim shapeRange1 As ShapeRange
shapeRange1.ZOrder(ZOrderCmd)

Syntax

Sub ZOrder( _
    <InAttribute()> ByVal ZOrderCmd As MsoZOrderCmd _
)
void ZOrder(
    [In] MsoZOrderCmd ZOrderCmd
);
public: Void ZOrder(
    MsoZOrderCmd^ ZOrderCmd
);
public void ZOrder(
    /*in*/MsoZOrderCmd ZOrderCmd
);
function ZOrder(
     ZOrderCmd : MsoZOrderCmd
);

Parameters

  • ZOrderCmd
    Required Microsoft.Office.Core.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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

ShapeRange Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

ShapeRange Members