Table of Contents

Operator explicit operator

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

explicit operator Brush(Color)

Converts the specified Color to a Brush.

public static explicit operator Brush(Color color)

Parameters

color Color

Returns

Brush

explicit operator Pen(Color)

Converts the specified Color to a Pen.

public static explicit operator Pen(Color color)

Parameters

color Color

Returns

Pen

Remarks

Pen width is set to 1 device-independent unit.

explicit operator SolidBrush(Color)

Converts the specified RGBValue to a Color.

public static explicit operator SolidBrush(Color color)

Parameters

color Color

Returns

SolidBrush

explicit operator Color(string)

Converts the specified string to a Color.

public static explicit operator Color(string s)

Parameters

s string

Returns

Color