Graphics.FillEllipse

FillEllipse(Brush, RectangleF)

Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure.

public void FillEllipse(Brush brush, RectangleF rect)
ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
rectRectangleFRectangleF structure that represents the bounding rectangle that defines the ellipse.

Exceptions

exceptioncondition
ArgumentNullExceptionbrush is null.

See Also


FillEllipse(Brush, float, float, float, float)

Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height.

public void FillEllipse(Brush brush, float x, float y, float width, float height)
ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
xSingleThe x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
ySingleThe y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
widthSingleWidth of the bounding rectangle that defines the ellipse.
heightSingleHeight of the bounding rectangle that defines the ellipse.

Exceptions

exceptioncondition
ArgumentNullExceptionbrush is null.

See Also


FillEllipse(Brush, Rectangle)

Fills the interior of an ellipse defined by a bounding rectangle specified by a Rectangle structure.

public void FillEllipse(Brush brush, Rectangle rect)
ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
rectRectangleRectangle structure that represents the bounding rectangle that defines the ellipse.

Exceptions

exceptioncondition
ArgumentNullExceptionbrush is null.

See Also


FillEllipse(Brush, int, int, int, int)

Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height.

public void FillEllipse(Brush brush, int x, int y, int width, int height)
ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
xInt32The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
yInt32The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse.
widthInt32Width of the bounding rectangle that defines the ellipse.
heightInt32Height of the bounding rectangle that defines the ellipse.

Exceptions

exceptioncondition
ArgumentNullExceptionbrush is null.

See Also