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)

void Align(
	MsoAlignCmd Align,
	int RelativeTo
)

Parameters

Align
Type: Microsoft.Office.Core.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.

Show:
© 2014 Microsoft