API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.AlignToPoint method
Aligns a shape to the specified co-ordinates
Syntax:
Sub AlignToPoint(ByVal Type As cdrAlignType, ByVal x As Double, ByVal y As Double, Optional ByVal TextAlignOrigin As cdrTextAlignOrigin = cdrTextAlignBoundingBox)
Parameters:
Name Type Description
Type
x
Double
y
Double
TextAlignOrigin
Specifies the origin of the text alignment.
Remarks:
The AlignToPoint method aligns a shape to the specified coordinates.