API Documentation > CorelDRAW > 2025-v26 > ShapeRange > IVGShapeRange
ShapeRange.AlignToShape method
Aligns all shapes of the range to the specified 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 for text alignment.
Remarks:
The AlignToShape method aligns all the shapes in a shape range to a specified shape.