DrawingContext.DrawEllipse DrawingContext.DrawEllipse DrawingContext.DrawEllipse Method

Definition

Draws an ellipse.

Overloads

DrawEllipse(Brush, Pen, Point, Double, Double) DrawEllipse(Brush, Pen, Point, Double, Double) DrawEllipse(Brush, Pen, Point, Double, Double)

Draws an ellipse with the specified Brush and Pen.

DrawEllipse(Brush, Pen, Point, AnimationClock, Double, AnimationClock, Double, AnimationClock) DrawEllipse(Brush, Pen, Point, AnimationClock, Double, AnimationClock, Double, AnimationClock) DrawEllipse(Brush, Pen, Point, AnimationClock, Double, AnimationClock, Double, AnimationClock)

Draws an ellipse with the specified Brush and Pen and applies the specified animation clocks.

DrawEllipse(Brush, Pen, Point, Double, Double) DrawEllipse(Brush, Pen, Point, Double, Double) DrawEllipse(Brush, Pen, Point, Double, Double)

Draws an ellipse with the specified Brush and Pen.

public:
 abstract void DrawEllipse(System::Windows::Media::Brush ^ brush, System::Windows::Media::Pen ^ pen, System::Windows::Point center, double radiusX, double radiusY);
public abstract void DrawEllipse (System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, System.Windows.Point center, double radiusX, double radiusY);
abstract member DrawEllipse : System.Windows.Media.Brush * System.Windows.Media.Pen * System.Windows.Point * double * double -> unit

Parameters

brush
Brush Brush Brush

The brush with which to fill the ellipse. This is optional, and can be null. If the brush is null, no fill is drawn.

pen
Pen Pen Pen

The pen with which to stroke the ellipse. This is optional, and can be null. If the pen is null, no stroke is drawn.

center
Point Point Point

The location of the center of the ellipse.

radiusX
Double Double Double

The horizontal radius of the ellipse.

radiusY
Double Double Double

The vertical radius of the ellipse.

Remarks

The brush and the pen can both be null. If the brush is null, then no fill is performed. If the pen is null, then no stoke is performed. If both the pen and the brush are null, then the drawing is not visible.

DrawEllipse(Brush, Pen, Point, AnimationClock, Double, AnimationClock, Double, AnimationClock) DrawEllipse(Brush, Pen, Point, AnimationClock, Double, AnimationClock, Double, AnimationClock) DrawEllipse(Brush, Pen, Point, AnimationClock, Double, AnimationClock, Double, AnimationClock)

Draws an ellipse with the specified Brush and Pen and applies the specified animation clocks.

public:
 abstract void DrawEllipse(System::Windows::Media::Brush ^ brush, System::Windows::Media::Pen ^ pen, System::Windows::Point center, System::Windows::Media::Animation::AnimationClock ^ centerAnimations, double radiusX, System::Windows::Media::Animation::AnimationClock ^ radiusXAnimations, double radiusY, System::Windows::Media::Animation::AnimationClock ^ radiusYAnimations);
public abstract void DrawEllipse (System.Windows.Media.Brush brush, System.Windows.Media.Pen pen, System.Windows.Point center, System.Windows.Media.Animation.AnimationClock centerAnimations, double radiusX, System.Windows.Media.Animation.AnimationClock radiusXAnimations, double radiusY, System.Windows.Media.Animation.AnimationClock radiusYAnimations);
abstract member DrawEllipse : System.Windows.Media.Brush * System.Windows.Media.Pen * System.Windows.Point * System.Windows.Media.Animation.AnimationClock * double * System.Windows.Media.Animation.AnimationClock * double * System.Windows.Media.Animation.AnimationClock -> unit

Parameters

brush
Brush Brush Brush

The brush with which to fill the ellipse. This is optional, and can be null. If the brush is null, no fill is drawn.

pen
Pen Pen Pen

The pen with which to stroke the ellipse. This is optional, and can be null. If the pen is null, no stroke is drawn.

center
Point Point Point

The location of the center of the ellipse.

centerAnimations
AnimationClock AnimationClock AnimationClock

The clock with which to animate the ellipse's center position, or null for no animation. This clock must be created from an AnimationTimeline that can animate Point objects.

radiusX
Double Double Double

The horizontal radius of the ellipse.

radiusXAnimations
AnimationClock AnimationClock AnimationClock

The clock with which to animate the ellipse's x-radius, or null for no animation. This clock must be created from an AnimationTimeline that can animate Double objects.

radiusY
Double Double Double

The vertical radius of the ellipse.

radiusYAnimations
AnimationClock AnimationClock AnimationClock

The clock with which to animate the ellipse's y-radius, or null for no animation. This clock must be created from an AnimationTimeline that can animate Double objects.

Remarks

The brush and the pen can both be null. If the brush is null, then no fill is performed. If the pen is null, then no stoke is performed. If both the pen and the brush are null, then the drawing is not visible.

Applies to