Class BrushProp
Defines the properties of a brush.
public class BrushProp
- Inheritance
-
BrushProp
- Inherited Members
Examples
BrushProp brush = new(Color.Red);
Constructors
BrushProp(Color)
Initializes a new instance of the BrushProp class with the specified color.
public BrushProp(Color color)
Parameters
color
ColorThe color of the brush.
Properties
Color
Gets the color of the brush.
public Color Color { get; }
Property Value
- Color
The color of the brush.
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
operator ==(BrushProp?, BrushProp?)
Determines whether two brushes are equal.
public static bool operator ==(BrushProp? left, BrushProp? right)
Parameters
Returns
operator !=(BrushProp?, BrushProp?)
Determines whether two brushes are not equal.
public static bool operator !=(BrushProp? left, BrushProp? right)