API Documentation
>
CorelDRAW
>
2025-v26
>
ShapeRange
>
IVGShapeRange
ShapeRange.AlignToShapeRange method
Aligns all shapes of the range to the bounding box of the specified shape range
Syntax:
Sub
AlignToShapeRange
(
ByVal
Type
As
cdrAlignType
,
ByVal
ShapeRange
As
ShapeRange
,
Optional
ByVal
TextAlignOrigin
As
cdrTextAlignOrigin
=
cdrTextAlignBoundingBox
)
Parameters:
Name
Type
Description
Type
cdrAlignType
ShapeRange
ShapeRange
TextAlignOrigin
cdrTextAlignOrigin
Specifies the origin for text alignment.
Remarks:
The
AlignToShapeRange
method aligns all the shapes in a shape range to the bounding box of another shape range.