API Documentation > CorelDRAW > 2025-v26 > Page > IVGPage
Page.CenterX property
Gets the horizontal page center coordinate
Syntax:
Property Get CenterX() As Double
Remarks:
The CenterX property returns the x-coordinate of the center of the page.
Examples:
The following VBA example creates an ellipse with a radius of 2" at the center of the active page.
Sub Test()
Dim s As Shape
Set s = ActiveLayer.CreateEllipse2(ActivePage.CenterX, ActivePage.CenterY, 2) 
End Sub