ShapeRange.Distribute(MsoDistributeCmd, MsoTriState) Method

Definition

Horizontally or vertically distributes the shapes in the specified range of shapes.

public:
 void Distribute(Microsoft::Office::Core::MsoDistributeCmd DistributeCmd, Microsoft::Office::Core::MsoTriState RelativeTo);
public void Distribute (Microsoft.Office.Core.MsoDistributeCmd DistributeCmd, Microsoft.Office.Core.MsoTriState RelativeTo);
Public Sub Distribute (DistributeCmd As MsoDistributeCmd, RelativeTo As MsoTriState)

Parameters

DistributeCmd
MsoDistributeCmd

Required MsoDistributeCmd. Specifies whether shapes in the range are to be distributed horizontally or vertically.

RelativeTo
MsoTriState

Required MsoTriState. Not used in Microsoft Excel. Must be False.

Applies to