Table of Contents

Class BrushOrColor

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

Contains brush or color.

public class BrushOrColor
Inheritance
BrushOrColor

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

Implicit operator convertion from tuple with four byte values to BrushOrColor. Tuple values define ARGB of the color.

implicit operator BrushOrColor((byte, byte, byte))

Implicit operator convertion from tuple with three byte values to BrushOrColor. Tuple values define RGB of the color.