Class BrushOrColor
Contains brush or color.
public class BrushOrColor : BaseObject, IBaseObject
- Inheritance
-
BrushOrColor
- Implements
Constructors
- BrushOrColor()
Initializes a new instance of the BrushOrColor class.
- BrushOrColor(Brush)
Initializes a new instance of the BrushOrColor class.
- BrushOrColor(Color)
Initializes a new instance of the BrushOrColor class.
- BrushOrColor(byte, byte, byte)
Initializes a new instance of the BrushOrColor class.
- BrushOrColor(byte, byte, byte, byte)
Initializes a new instance of the BrushOrColor class.
Properties
- AsBrush
Gets brush or color as brush.
- AsColor
Gets brush or color as color.
- Brush
Gets or sets brush.
- Color
Gets or sets color.
- IsBrush
Gets whether this object contains brush.
- IsColor
Gets whether this object contains color.
- IsEmpty
Gets or sets whether this object is empty (contains no brush or color).
Operators
- implicit operator BrushOrColor(Brush)
Implicitly converts a Brush to a BrushOrColor.
- implicit operator BrushOrColor(Color)
Implicitly converts a Color to a BrushOrColor.
- implicit operator BrushOrColor((byte Alpha, byte Red, byte Green, byte Blue))
Implicit operator conversion from tuple with four byte values to BrushOrColor. Tuple values define ARGB of the color.
- implicit operator BrushOrColor((byte Red, byte Green, byte Blue))
Implicit operator conversion from tuple with three byte values to BrushOrColor. Tuple values define RGB of the color.