Class SolidBrush
Defines a brush of a single color.
Implements
Inherited Members
Namespace: DRIT.Drawing.Brushes
Assembly: DRIT.Drawing.dll
Syntax
public sealed class SolidBrush : Brush, IDisposable
Remarks
A SolidBrush is the simplest brush that fills shapes with a solid color. It is commonly used for drawing filled rectangles, ellipses, and other shapes.
Constructors
SolidBrush(Color)
Initializes a new SolidBrush object of the specified color.
Declaration
public SolidBrush(Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | color | The color of the brush. |
Remarks
A SolidBrush is the simplest brush that fills shapes with a solid color. It is commonly used for drawing filled rectangles, ellipses, and other shapes.
Properties
Color
Gets or sets the color of this brush.
Declaration
public Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Remarks
A SolidBrush is the simplest brush that fills shapes with a solid color. It is commonly used for drawing filled rectangles, ellipses, and other shapes.
Methods
Clone()
Creates an exact copy of this SolidBrush.
Declaration
public override Brush Clone()
Returns
| Type | Description |
|---|---|
| Brush | A new SolidBrush with the same color. |
Overrides
Remarks
A SolidBrush is the simplest brush that fills shapes with a solid color. It is commonly used for drawing filled rectangles, ellipses, and other shapes.