API Documentation > CorelDRAW > 2025-v26 > Ellipse > IVGEllipse
Ellipse.Type property
Gets or sets the type of ellipse
Syntax:
Property Get Type() As cdrEllipseType
Property Let Type(ByVal Value As cdrEllipseType)
Remarks:
The Type property returns or specifies a value indicating whether the ellipse shape is a full ellipse, a pie, or an arc. The Type property returns a value of cdrEllipseType.
Examples:
The following VBA example loops through all of the shapes on the active page of the active document, fills all ellipses with red, and changes arcs to pies.
Sub Test()
Dim s As Shape
For Each s In ActivePage.Shapes
  If s.Type = cdrEllipseShape Then

 If s.Ellipse.Type = cdrArc Then s.Ellipse.Type = cdrPie


s.Fill.UniformColor.RGBAssign 255, 0, 0

 End If
  Next s

End Sub