Table of Contents

Method Parse

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

Parse(string?)

Returns a color from the specified string.

public static Color Parse(string? s)

Parameters

s string

Returns

Color

Parse(ITypeDescriptorContext?, CultureInfo?, string?)

Converts string to Color.

public static Color? Parse(ITypeDescriptorContext? context, CultureInfo? culture, string? s)

Parameters

context ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context. You can use this object to get additional information about the environment from which this converter is being invoked.

culture CultureInfo

A CultureInfo that specifies the culture to represent the color.

s string

The string to convert.

Returns

Color