GraphicsExtensionsFillRectangle Method

Fills the interior of a rectangle specified by a RectangleF structure.

Definition

Namespace: SMath.Drawing
Assembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.4.0.0
C#
public static void FillRectangle(
	this IGraphics g,
	ColorBrush brush,
	RectangleF rect
)

Parameters

g  IGraphics
brush  ColorBrush
ColorBrush that determines the characteristics of the fill.
rect  RectangleF
RectangleF structure that represents the rectangle to fill.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IGraphics. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also