ShapeRange.Distribute(MsoDistributeCmd, Int32) ShapeRange.Distribute(MsoDistributeCmd, Int32) ShapeRange.Distribute(MsoDistributeCmd, Int32) Method

Definition

Evenly distributes the shapes in the specified range of shapes.

public:
 void Distribute(Microsoft::Office::Core::MsoDistributeCmd Distribute, int RelativeTo);
public void Distribute (Microsoft.Office.Core.MsoDistributeCmd Distribute, int RelativeTo);
Public Sub Distribute (Distribute As MsoDistributeCmd, RelativeTo As Integer)
Parameters
Distribute
Microsoft.Office.Core.MsoDistributeCmd Microsoft.Office.Core.MsoDistributeCmd Microsoft.Office.Core.MsoDistributeCmd

Required Microsoft.Office.Core.MsoDistributeCmd.MsoDistributeCmd can be one of the following constants:msoDistributeHorizontallymsoDistributeVertically

RelativeTo
Int32 Int32 Int32

Required Integer. True to distribute the shapes evenly over the entire horizontal or vertical space on the page. False to distribute them within the horizontal or vertical space that the range of shapes originally occupies.

Remarks

You can specify whether you want to distribute the shapes horizontally or vertically and whether you want to distribute them over the entire page or just over the space they originally occupy.

Applies to