• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class SolidBrush

Defines a brush of a single color.

Inheritance
object
Brush
SolidBrush
Implements
IDisposable
Inherited Members
Brush.Dispose()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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
Brush.Clone()
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.

Implements

IDisposable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX