FillPrimitive
The FillPrimitive class is responsible for filling in an area on the screen. It has a variety of properties that allow you to control the style of the fill:
GradientStyle: Allows you to select from solid, linear, radial, glass, office glass, office glass rectangle, gel, and vista styles.
Solid: The color of the fill is set by the BackColor property.
Linear: The shading of the fill is set by the BackColor, BackColor2, BackColor3, and BackColor4 properties. The angle of the shading is set by the GradientAngle property.
Radial: The shading of the fill is set by the BackColor, BackColor2, and BackColor3 properties. The GradientPercentage property controls the width of the outer color band and the GradientPercentage2 property controls the width of the middle color band.
Glass: The shading of the fill is set by the BackColor, BackColor2, BackColor3, and BackColor4 properties. The GradientPercentage property controls the position of the horizontal dividing line in the fill.
OfficeGlass: The shading of the fill is set by the BackColor, BackColor2, BackColor3, and BackColor4 properties. The GradientPercentage and GradientPercentage2 properties control the relative amounts of the different colors in the fill.
OfficeGlassRect: The shading of the fill is set by the BackColor, BackColor2, BackColor3, and BackColor4 properties. The GradientPercentage and GradientPercentage2 properties control the relative amounts of the different colors in the fill.
Gel: The shading of the fill is set by the BackColor and BackColor2 properties. The GradientPercentage property controls the height of the highlight bubble.
Vista: The shading of the fill is set by the BackColor, BackColor2, BackColor3, and BackColor4 properties. The GradientPercentage and GradientPercentage2 properties control the position of the horizontal lines in the fill.
BackColor, BackColor2, BackColor3, and BackColor4 are combined in various ways depending on the gradient style that you have selected.
GradientAngle: Sets the angle of the linear gradient.
GradientPercentage, GradientPercentage2: Adjust drawing parameters for the various styles.
The example below iterates the GradientStyles enumeration and creates a FillPrimitive sample for each value.