Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Sub Align ( _
Align As MsoAlignCmd, _
RelativeTo As Integer _
)
'Usage
Dim instance As ShapeRange
Dim Align As MsoAlignCmd
Dim RelativeTo As Integer
instance.Align(Align, RelativeTo)
void Align(
MsoAlignCmd Align,
int RelativeTo
)
Parameters
- Align
Type: MsoAlignCmd
Required 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
Type: System.Int32
Required Integer. True to align shapes relative to the edge of the document. False to align shapes relative to one another.