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)

Syntax

'Declaration
Sub Distribute ( _
    Distribute As MsoDistributeCmd, _
    RelativeTo As Integer _
)
'Usage
Dim instance As ShapeRange
Dim Distribute As MsoDistributeCmd
Dim RelativeTo As Integer

instance.Distribute(Distribute, RelativeTo)
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.

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.

See Also

Reference

ShapeRange Interface

ShapeRange Members

Microsoft.Office.Interop.Word Namespace