Table of Contents

Method FromKnownColor

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

FromKnownColor(KnownColor)

Creates a Color structure from the specified predefined color.

public static Color FromKnownColor(KnownColor color)

Parameters

color KnownColor

An element of the KnownColor enumeration.

Returns

Color

The Color that this method creates.

Remarks

A predefined color is also called a known color and is represented by an element of the KnownColor enumeration.