Skip to content

Class ColorConverter

Definition

Namespace: StardewUI.Framework.Converters
Assembly: StardewUI.dll

String converter for the XNA Color type.

public class ColorConverter : 
    StardewUI.Framework.Converters.IValueConverter<string, Microsoft.Xna.Framework.Color>, 
    StardewUI.Framework.Converters.IValueConverter

Inheritance
Object ⇦ ColorConverter

Implements
IValueConverter<string, Color>, IValueConverter

Remarks

Supports hex strings of the form #rgb, #rrggbb, or #rrggbbaa, as well as any of the XNA named color strings like LimeGreen.

Members

Constructors

Name Description
ColorConverter()

Methods

Name Description
Convert(string) Converts a value from the source type to the destination type.

Details

Constructors

ColorConverter()

public ColorConverter();

Methods

Convert(string)

Converts a value from the source type to the destination type.

public Microsoft.Xna.Framework.Color Convert(string value);
Parameters

value   string
The value to convert.

Returns

Color