Provides a class that draws a solid color background fill.
- Inheritance:
-
object
Background
Fill object
- Implements:
- ICloneable
Constructors
SolidColorBackgroundFill()
Initializes a new instance of the SolidColorBackgroundFill
class.
Remarks
The default constructor initializes all fields to their default values.
SolidColorBackgroundFill(SolidColorBackgroundFill)
Initializes a new instance of the SolidColorBackgroundFill
class.
Parameter | Type | Description |
---|---|---|
copyFrom | Solid |
An instance of |
Remarks
This constructor used in support of Clone() for base classes to initialize their fields.
SolidColorBackgroundFill(Color)
Initializes a new instance of the SolidColorBackgroundFill
class.
Parameter | Type | Description |
---|---|---|
color | Color | The color of the background fill. |
Properties
Color
Gets or sets the color of the background fill.
ColorAlpha
Gets or sets the color alpha value.
Property Value
- byte:
The color alpha value.
Methods
Clone()
Creates an exact duplicate of the Background
Returns
- Background
Fill : An exact duplicate of the Background
Fill object.
Draw(Graphics, Rectangle, Color)
Fills an area with the background fill.
Parameter | Type | Description |
---|---|---|
g | Graphics | The |
bounds | Rectangle | The bounds of the area to paint. |
color | Color | The color of the background fill. |
Draw(Graphics, int, int, int, int, Color)
Fills an area with the background fill.
Parameter | Type | Description |
---|---|---|
g | Graphics | The |
x | int | The x-coordinate of the upper-left corner of the area to paint. |
y | int | The y-coordinate of the upper-left corner of the area to paint. |
width | int | The width of the area to paint. |
height | int | The height of the area to paint. |
color | Color | The color of the background fill. |
DrawScaled(Graphics, Rectangle, Rectangle, Sides, SizeF)
Fills an area with the background fill.
Parameter | Type | Description |
---|---|---|
g | Graphics | The |
bounds | Rectangle | The bounds of the area to paint. |
brushBounds | Rectangle | (Unused) The reference bounds for the brush. |
side | Sides | (Unused) The side with which the background fill should be oriented. |
scaleFactor | Size |
(Unused) The factor of the scale transform to be applied where Width is applied to the x-axis, and Height is applied to the y-axis. |
Equals(object)
Determines whether the specified Object
is equal to the current Object
.
Parameter | Type | Description |
---|---|---|
obj | object | The |
Returns
- bool:
true
if the specifiedObject
is equal to the currentObject
; otherwise,false
.
GetBrush(Rectangle, Sides)
Gets a Brush that represents the background fill.
Parameter | Type | Description |
---|---|---|
bounds | Rectangle | The bounds of the area to paint. |
side | Sides | The side with which the background fill should be oriented. |
Returns
GetHashCode()
Returns a hash code for this object.
Returns
- int:
An integer value that specifies a hash value for this object.
ResetColor()
Resets the Color property to its default value.
ShouldSerializeColor()
Indicates whether the Color property should be persisted.
Returns
- bool:
true
if the property value has changed from its default; otherwise,false
.
Inherited Members
-
Background
Fill. Draw(Graphics, Rectangle) -
Background
Fill. Draw(Graphics, Rectangle, Rectangle) -
Background
Fill. Draw(Graphics, Rectangle, Sides) -
Background
Fill. Draw(Graphics, Rectangle, Rectangle, Sides) -
Background
Fill. Draw Scaled(Graphics, Rectangle, Size F) -
Background
Fill. Draw Scaled(Graphics, Rectangle, Rectangle, Size F) -
Background
Fill. Draw Scaled(Graphics, Rectangle, Sides, Size F) -
Background
Fill. On Property Changed(Event Args) -
Background
Fill. Property Changed -
object.
Get Type() -
object.
Memberwise Clone() -
object.
To String() -
object.
Equals(object, object) -
object.
Reference Equals(object, object)