Object Model Reference : Classes : E : Ellipse : Properties : Ellipse.Type |
Property Type As cdrEllipseType
Member of Ellipse
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.
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 |
Copyright 2013 Corel Corporation. All rights reserved.