This documentation is archived and is not being maintained.

ShapeRange.Distribute Method

Evenly distributes the shapes in the specified range of shapes.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

void Distribute(
	MsoDistributeCmd Distribute,
	int RelativeTo
)

Parameters

Distribute
Type: MsoDistributeCmd
Required MsoDistributeCmd.
MsoDistributeCmd can be one of the following constants:
msoDistributeHorizontally
msoDistributeVertically
RelativeTo
Type: System.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.

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.

Show: