Fills the rectangle with a gradient color.

Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)

Syntax

C#
void Fill(
	Color color1,
	Color color2,
	GradientDirection direction,
	Rectangle gradientBounds,
	Rectangle drawBounds,
	Graphics graphics
)
Visual Basic
Sub Fill ( 
	color1 As Color,
	color2 As Color,
	direction As GradientDirection,
	gradientBounds As Rectangle,
	drawBounds As Rectangle,
	graphics As Graphics
)
Visual C++
void Fill(
	Color color1, 
	Color color2, 
	GradientDirection direction, 
	Rectangle gradientBounds, 
	Rectangle drawBounds, 
	Graphics^ graphics
)
F#
abstract Fill : 
        color1 : Color * 
        color2 : Color * 
        direction : GradientDirection * 
        gradientBounds : Rectangle * 
        drawBounds : Rectangle * 
        graphics : Graphics -> unit 

Parameters

color1
Type: System.Drawing..::..Color
The beginning gredient color.
color2
Type: System.Drawing..::..Color
The ending gradient color.
direction
Type: Dapfor.Net.Ui..::..GradientDirection
The gradient direction.
gradientBounds
Type: System.Drawing..::..Rectangle
Specifies the bounds of the linear gradient.
drawBounds
Type: System.Drawing..::..Rectangle
Specifies the rectangle to fill.
graphics
Type: System.Drawing..::..Graphics
The graphics.

See Also