Class Brush
Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.
[TypeConverter(typeof(BrushConverter))]
public class Brush : HandledObject<IBrushHandler>, IBaseObject, IDisposableObject, IDisposable, INotifyPropertyChanged, IEquatable<Brush>
- Inheritance
-
Brush
- Implements
- Derived
Remarks
This is an abstract base class and cannot be instantiated. To create a brush object, use classes derived from Brush, such as SolidBrush or HatchBrush.
Constructors
- Brush(bool)
Initializes a new instance of the Brush class.
Fields
- Transparent
Gets transparent brush.
Properties
- AsColor
Gets color of the brush.
- BrushType
Gets type of the brush.
- Default
Gets the default brush.
- UpdateRequired
Gets whether handler update is required.
Methods
- CreateHandler()
Creates handler.
- CreateSkiaPaint()
Creates SKPaint for this brush.
- Equals(object?)
Determines whether the specified object is equal to the current object.
- GetHashCode()
Serves as the default hash function.
- ToString()
Returns a string that represents the current object.
- UpdateHandler()
Updates handler.
Operators
- operator ==(Brush?, Brush?)
Returns a value that indicates whether the two objects are equal.
- operator !=(Brush?, Brush?)
Returns a value that indicates whether the two objects are not equal.