API Documentation > CorelDRAW > 2025-v26 > ShapeRange > IVGShapeRange
ShapeRange.AlignToPageCenter method
Aligns all shapes of the range to the center of the page
Syntax:
Sub AlignToPageCenter(ByVal Type As cdrAlignType, Optional ByVal TextAlignOrigin As cdrTextAlignOrigin = cdrTextAlignBoundingBox)
Parameters:
Name Type Description
Type
TextAlignOrigin
Specifies the origin for text alignment.
Remarks:
The AlignToPageCenter method aligns all the shapes in a shape range to the center of the page.