Class SvgColourConverter
Converts string representations of colours into Color objects.
Inherited Members
System.ComponentModel.TypeConverter.ConvertFrom(System.Object)
System.ComponentModel.TypeConverter.ConvertToInvariantString(System.Object)
System.ComponentModel.TypeConverter.ConvertToString(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, System.Object)
System.ComponentModel.TypeConverter.ConvertToString(System.Object)
System.ComponentModel.TypeConverter.GetProperties(System.ComponentModel.ITypeDescriptorContext, System.Object)
System.ComponentModel.TypeConverter.GetProperties(System.ComponentModel.ITypeDescriptorContext, System.Object, System.Attribute[])
System.ComponentModel.TypeConverter.GetPropertiesSupported(System.ComponentModel.ITypeDescriptorContext)
System.ComponentModel.TypeConverter.GetStandardValues()
System.ComponentModel.TypeConverter.GetStandardValuesExclusive()
System.ComponentModel.TypeConverter.GetStandardValuesSupported()
System.ComponentModel.TypeConverter.IsValid(System.ComponentModel.ITypeDescriptorContext, System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Svg
Assembly: Svg.dll
Syntax
public class SvgColourConverter : ColorConverter
Methods
| Improve this Doc View SourceCanConvertFrom(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.ComponentModel.ITypeDescriptorContext | context | |
| Type | sourceType |
Returns
| Type | Description |
|---|---|
| Boolean |
Overrides
System.Drawing.ColorConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Type)
|
Improve this Doc
View Source
CanConvertTo(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.ComponentModel.ITypeDescriptorContext | context | |
| Type | destinationType |
Returns
| Type | Description |
|---|---|
| Boolean |
Overrides
| Improve this Doc View SourceConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Converts the given object to the converter's native type.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.ComponentModel.ITypeDescriptorContext | context | A TypeDescriptor that provides a format context. You can use this object to get additional information about the environment from which this converter is being invoked. |
| CultureInfo | culture | A CultureInfo that specifies the culture to represent the color. |
| Object | value | The object to convert. |
Returns
| Type | Description |
|---|---|
| Object | An Object representing the converted value. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | The conversion cannot be performed. |
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.ComponentModel.ITypeDescriptorContext | context | |
| CultureInfo | culture | |
| Object | value | |
| Type | destinationType |
Returns
| Type | Description |
|---|---|
| Object |