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

Class Brush

Defines objects used to fill the interior of shapes, such as rectangles, ellipses, and paths. This is the base class for all brush types including SolidBrush, HatchBrush, LinearGradientBrush, PathGradientBrush, and TextureBrush.

Inheritance
object
Brush
SolidBrush
TextureBrush
HatchBrush
LinearGradientBrush
PathGradientBrush
Implements
IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DRIT.Drawing.Brushes
Assembly: DRIT.Drawing.dll
Syntax
public abstract class Brush : IDisposable
Remarks

Brushes are used with Graphics objects to fill shapes. Derived classes provide different fill patterns such as solid colors, hatching, gradients, and textures.

Constructors

Brush()

Initializes a empty Brush instance.

Declaration
protected Brush()
Remarks

Brushes are used with Graphics objects to fill shapes. Derived classes provide different fill patterns such as solid colors, hatching, gradients, and textures.

Methods

CheckDisposed()

Throws an ObjectDisposedException if this brush has been disposed.

Declaration
protected void CheckDisposed()
Remarks

Brushes are used with Graphics objects to fill shapes. Derived classes provide different fill patterns such as solid colors, hatching, gradients, and textures.

Clone()

Creates an exact copy of this brush.

Declaration
public abstract Brush Clone()
Returns
Type Description
Brush

A new Brush object that is a copy of this instance.

Remarks

Brushes are used with Graphics objects to fill shapes. Derived classes provide different fill patterns such as solid colors, hatching, gradients, and textures.

Dispose()

Releases all resources used by this brush.

Declaration
public void Dispose()
Remarks

Brushes are used with Graphics objects to fill shapes. Derived classes provide different fill patterns such as solid colors, hatching, gradients, and textures.

Dispose(bool)

Releases the unmanaged resources used by the brush and optionally releases the managed resources.

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
bool disposing

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

Brushes are used with Graphics objects to fill shapes. Derived classes provide different fill patterns such as solid colors, hatching, gradients, and textures.

Implements

IDisposable
Back to top

DR-IT Software documentation

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

Generated by DocFX