Circle Method

Draws a circle or ellipse on a form.

Object.Circle (nRadius [, nXCoord, nYCoord [, nAspect]])

Parameters

  • nRadius
    Specifies the radius of the circle or ellipse. The ScaleMode property of the form determines the unit of measurement used.
  • nXCoord, nYCoord
    Specifies the coordinates for the center point of the circle or ellipse. The ScaleMode property of the form determines the units of measurement used.
  • nAspect
    Specifies the aspect ratio of the circle. The default value is 1.0, which produces a perfect (nonelliptical) circle. Values greater than 1.0 produce a vertical ellipse; values less than 1.0 produce a horizontal ellipse.

Remarks

To control the width of the line used to draw the circle or ellipse, set the DrawWidth property.

To control the way the circle is drawn in the background, set the DrawMode and DrawStyle properties.

To fill a circle, set the FillColor and FillStyle properties of the form.

When the Circle method is invoked, CurrentX and CurrentY are set to the center point arguments, nXCoord, nYCoord.

See Also

BackColor Property | CurrentX, CurrentY Properties | DrawMode Property | DrawStyle Property | DrawWidth Property | FillColor Property | FillStyle Property | ForeColor Property | ScaleMode Property

Applies To: Form Object | _SCREEN