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