Previous Document Next Document

Object Model Reference : Classes : E : Ellipse : Properties : Ellipse.Clockwise


Ellipse.Clockwise

Property Clockwise As Boolean

Description

Member of Ellipse

The Clockwise property returns or specifies a value indicating whether the ellipse, arc, or pie goes from the start angle to the end angle in a clockwise or counterclockwise direction. If the value returned is True, the ellipse has a clockwise rotation.

VBA example

The following VBA example converts the selected ellipse to a pie with a start angle of 0°, an end angle of 90°, and a clockwise rotation.

Sub Test()
 Dim s As Shape
 Set s = ActiveSelection.Shapes(1)
 If s.Type = cdrEllipseShape Then
  With s.Ellipse
   .StartAngle = 0
   .EndAngle = 90
   .Clockwise = True
   .Type = cdrPie
  End With
 End If
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.