Edit

Share via


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);
abstract member Distribute : Microsoft.Office.Core.MsoDistributeCmd * int -> unit
Public Sub Distribute (Distribute As MsoDistributeCmd, RelativeTo As Integer)

Parameters

Distribute
MsoDistributeCmd

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

RelativeTo
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