Brush Class
Definition
Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.
public abstract class Brush : MarshalByRefObject, ICloneable, IDisposable
- Inheritance
- Derived
- Implements
Inherited Members
System.MarshalByRefObject
System.Object
Remarks
This is an abstract base class and cannot be instantiated. To create a brush object, use classes derived from Brush, such as SolidBrush, TextureBrush, and LinearGradientBrush.
Constructors
| Brush() |
Initializes a new instance of the Brush class. |
Methods
| Clone() |
When overridden in a derived class, creates an exact copy of this Brush. |
| Dispose() |
Releases all resources used by this Brush object. |
| Dispose(Boolean) |
Releases the unmanaged resources used by the Brush and optionally releases the managed resources. |
| Finalize() |
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. |
| SetNativeBrush(IntPtr) |
In a derived class, sets a reference to a GDI+ brush object. |