[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.GcGraphics.FillRectangle

FillRectangle Method

FillRectangle(RectangleF, Brush, RectangleF?, Matrix3x2?)

Fills a rectangle using a specified brush.

Declaration
public void FillRectangle(RectangleF bounds, Brush brush, RectangleF? brushBounds = null, Matrix3x2? brushTransform = null)
Public Sub FillRectangle(bounds As RectangleF, brush As Brush, Optional brushBounds As RectangleF? = Nothing, Optional brushTransform As Matrix3x2? = Nothing)
Parameters
Type Name Description
RectangleF bounds

A RectangleF structure that represents the rectangle to fill.

Brush brush

The brush to use.

RectangleF? brushBounds

The optional bounds for a gradient brush.

Matrix3x2? brushTransform

The transformation applied to the brush.

FillRectangle(RectangleF, Color)

Fills a rectangle with a solid color.

Declaration
public void FillRectangle(RectangleF bounds, Color color)
Public Sub FillRectangle(bounds As RectangleF, color As Color)
Parameters
Type Name Description
RectangleF bounds

A RectangleF structure that represents the rectangle to fill.

Color color

The fill color.