C# Class Svg.SvgColourConverter

Converts string representations of colours into Color objects.
Inheritance: System.Drawing.ColorConverter
Mostrar archivo Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
CanConvertFrom ( System context, Type sourceType ) : bool
CanConvertTo ( System context, Type destinationType ) : bool
ConvertFrom ( System context, System culture, object value ) : object

Converts the given object to the converter's native type.

ConvertTo ( System context, System culture, object value, Type destinationType ) : object

Method Details

CanConvertFrom() public method

public CanConvertFrom ( System context, Type sourceType ) : bool
context System
sourceType System.Type
return bool

CanConvertTo() public method

public CanConvertTo ( System context, Type destinationType ) : bool
context System
destinationType System.Type
return bool

ConvertFrom() public method

Converts the given object to the converter's native type.
The conversion cannot be performed.
public ConvertFrom ( System context, System culture, object value ) : object
context System A 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 System A that specifies the culture to represent the color.
value object The object to convert.
return object

ConvertTo() public method

public ConvertTo ( System context, System culture, object value, Type destinationType ) : object
context System
culture System
value object
destinationType System.Type
return object