Table of Contents

Method GetColorOrException

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

GetColorOrException(string)

Gets a color by its name or raises an exception if no color is registered for the specified name.

public static Color GetColorOrException(string name)

Parameters

name string

Returns

Color

Exceptions

ArgumentException

The color was not found.