Skip to end of metadata
Go to start of metadata

Represent color converter.

Definition

public class ColorConverter : TypeConverter

Summary

The following table summarizes the members exposed in this class.

Public Constructors

ColorConverter Constructor() Initializes a new instance of the ColorConverter class.

Public Methods

CanConvertFrom(ITypeDescriptorContext, Type) Determines whether this instance [can convert from] the specified context.
CanConvertTo(ITypeDescriptorContext, Type) Determines whether this instance [can convert to] the specified context.
ConvertFrom(ITypeDescriptorContext, CultureInfo, object) Converts from.
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type) Converts to.
GetStandardValues(ITypeDescriptorContext) Gets the standard values.
GetStandardValuesSupported(ITypeDescriptorContext) Gets the standard values supported.

Public Constructors

public ColorConverter()

Public Methods

public bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)

Determines whether this instance [can convert from] the specified context.

Parameters

context The context.
sourceType Type of the source.

public bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)

Determines whether this instance [can convert to] the specified context.

Parameters

context The context.
destinationType Type of the destination.

public object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)

Converts from.

Parameters

context The context.
culture The culture.
value The value.

public object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)

Converts to.

Parameters

context The context.
culture The culture.
value The value.
destinationType Type of the destination.

public StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)

Gets the standard values.

Parameters

context The context.

public bool GetStandardValuesSupported(ITypeDescriptorContext context)

Gets the standard values supported.

Parameters

context The context.
  • No labels