API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.AlignToPageCenter method
Aligns a shape to the page center
Syntax:
Sub AlignToPageCenter(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 AlignToPageCenter method aligns a shape to the page center.