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