Table of Contents

Class Brush

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

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()

Initializes a new instance of the Brush class.

Brush(bool)

Initializes a new instance of the Brush class.

Fields

Transparent

Gets transparent brush.

Properties

AsColor

Gets color of the brush.

AsPen

Creates Pen with this brush as a parameter.

BrushType

Gets type of the brush.

Default

Gets the default brush.

SkiaPaint

Gets or sets SKPaint for this 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.

implicit operator SKPaint(Brush)

Converts the specified Pen to a SKPaint.

operator !=(Brush?, Brush?)

Returns a value that indicates whether the two objects are not equal.