ShapeRange.Distribute Method
Horizontally or vertically distributes 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 Distribute ( _
DistributeCmd As MsoDistributeCmd, _
RelativeTo As MsoTriState _
)
'Usage
Dim instance As ShapeRange
Dim DistributeCmd As MsoDistributeCmd
Dim RelativeTo As MsoTriState
instance.Distribute(DistributeCmd, RelativeTo)
void Distribute(
MsoDistributeCmd DistributeCmd,
MsoTriState RelativeTo
)
Parameters
DistributeCmd
Type: Microsoft.Office.Core.MsoDistributeCmdRequired MsoDistributeCmd. Specifies whether shapes in the range are to be distributed horizontally or vertically.
RelativeTo
Type: Microsoft.Office.Core.MsoTriStateRequired MsoTriState. Not used in Microsoft Excel. Must be False.