ShapeRange.Align Method
Aligns the shapes in the specified range of shapes.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub Align ( _
AlignCmd As MsoAlignCmd, _
RelativeTo As MsoTriState _
)
'Usage
Dim instance As ShapeRange
Dim AlignCmd As MsoAlignCmd
Dim RelativeTo As MsoTriState
instance.Align(AlignCmd, RelativeTo)
void Align(
MsoAlignCmd AlignCmd,
MsoTriState RelativeTo
)
Parameters
AlignCmd
Type: Microsoft.Office.Core.MsoAlignCmdRequired MsoAlignCmd. Specifies the way the shapes in the specified shape range are to be aligned.
RelativeTo
Type: Microsoft.Office.Core.MsoTriStateRequired MsoTriState. Not used in Microsoft Excel. Must be False.