Previous Document Next Document

Object Model Reference : Classes : S : ShapeRange : Methods : ShapeRange.AlignAndDistribute


ShapeRange.AlignAndDistribute

Sub AlignAndDistribute(MethodH As cdrAlignDistributeH, MethodV As cdrAlignDistributeV, [AlignTo As cdrAlignShapesTo = cdrAlignShapesToLastSelected (0)], [DistributeArea As cdrDistributeArea = cdrDistributeToSelection (0)], [UseOutline As Boolean = False], [TextAlignOrigin As cdrTextAlignOrigin = cdrTextAlignBoundingBox (2)], [PointX As Double = 0], [PointY As Double = 0], [DistributeRect As Rect = 0])

Description

Member of ShapeRange

The AlignAndDistribute method aligns and/or distributes the shape or shapes in the shape range.

Parameter
Description
MethodH
Specifies which method is used for aligning and distributing objects horizontally
MethodV
Specifies which method is used for aligning and distributing objects vertically
AlignTo
Specifies whether to align objects to the center or edge of the page, the grid, the last selected object, or to a defined point
DistributeArea
Specifies the area over which to distribute objects
UseOutline
Accounts for outline thickness when calculating object size and position
TextAlignOrigin
Specifies the origin for aligning text such as bounding box, first baseline, or last baseline
PointX
Specifies the x-coordinate of the reference point for aligning and distributing
PointY
Specifies the y-coordinate of the reference point for aligning and distributing objects
DistributeRect
Distributes shapes within the area of a specified rectangle

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.