C# Class Svg.SvgColourConverter

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

Méthodes publiques

Méthode 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 méthode

public CanConvertFrom ( System context, Type sourceType ) : bool
context System
sourceType System.Type
Résultat bool

CanConvertTo() public méthode

public CanConvertTo ( System context, Type destinationType ) : bool
context System
destinationType System.Type
Résultat bool

ConvertFrom() public méthode

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.
Résultat object

ConvertTo() public méthode

public ConvertTo ( System context, System culture, object value, Type destinationType ) : object
context System
culture System
value object
destinationType System.Type
Résultat object