ColorToNameConverter.

Convert(object, Type, object, CultureInfo) Method

Summary

Converts a given Color to its Name

Syntax

public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

Name Type Description
value object Needed: The Color.
targetType Type
parameter object Optional: A Dictionary<TKey, TValue>
culture CultureInfo

Return Value

Type Description
object The name of the color or the Hex-Code if no name is available