API Documentation
>
CorelDRAW
>
2025-v26
>
Shape
>
IVGShape
Shape.AlignToShapeRange method
Aligns a shape to a ShapeRange
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 of the text alignment.
Remarks:
The
AlignToShapeRange
method aligns a shape to a shape range (or
ShapeRange
object).