ShapeRange.Align Method 

Aligns the shapes in the specified range of shapes.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim Align As MsoAlignCmd
Dim RelativeTo As Integer
Dim shapeRange1 As ShapeRange
shapeRange1.Align(Align, RelativeTo)

Syntax

Sub Align( _
    <InAttribute()> ByVal Align As MsoAlignCmd, _
    <InAttribute()> ByVal RelativeTo As Integer _
)
void Align(
    [In] MsoAlignCmd Align, 
    [In] int RelativeTo
);
public: Void Align(
    MsoAlignCmd^ Align, 
    Int32 RelativeTo
);
public void Align(
    /*in*/MsoAlignCmd Align, 
    /*in*/int RelativeTo
);
function Align(
     Align : MsoAlignCmd, 
     RelativeTo : int
);

Parameters

  • Align
    Required Microsoft.Office.Core.MsoAlignCmd. Specifies the way the shapes in the specified shape range are to be aligned.

    MsoAlignCmd can be one of the following constants:

    msoAlignCenters

    msoAlignMiddles

    msoAlignTops

    msoAlignBottoms

    msoAlignLefts

    msoAlignRights

  • RelativeTo
    Required Integer. True to align shapes relative to the edge of the document. False to align shapes relative to one another.

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