This documentation is archived and is not being maintained.

DrawingContext.DrawEllipse Method (Brush, Pen, Point, Double, Double)

Draws an ellipse with the specified Brush and Pen.

Namespace: System.Windows.Media
Assembly: PresentationCore (in presentationcore.dll)

public abstract void DrawEllipse (
	Brush brush,
	Pen pen,
	Point center,
	double radiusX,
	double radiusY
)
public abstract void DrawEllipse (
	Brush brush, 
	Pen pen, 
	Point center, 
	double radiusX, 
	double radiusY
)
public abstract function DrawEllipse (
	brush : Brush, 
	pen : Pen, 
	center : Point, 
	radiusX : double, 
	radiusY : double
)
You cannot use methods in XAML.

Parameters

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

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

The location of the center of the ellipse.

radiusX

The horizontal radius of the ellipse.

radiusY

The vertical radius of the ellipse.

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: