Class EnumBaseConverter<T>
Inheritance
EnumBaseConverter<T>
Inherited Members
System.ComponentModel.TypeConverter.CanConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Type)
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 abstract class EnumBaseConverter<T> : TypeConverter where T : struct
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
| Improve this Doc View SourceEnumBaseConverter(EnumBaseConverter<T>.CaseHandling)
Creates a new instance.
Declaration
public EnumBaseConverter(EnumBaseConverter<T>.CaseHandling caseHandling = EnumBaseConverter<T>.CaseHandling.CamelCase)
Parameters
| Type | Name | Description |
|---|---|---|
| EnumBaseConverter.CaseHandling<> | caseHandling | Defines if the value shall be converted to camelCase, PascalCase, lowercase or kebab-case. |
Properties
| Improve this Doc View SourceCaseHandlingMode
Defines if the enum literal shall be converted to camelCase, PascalCase or kebab-case.
Declaration
public EnumBaseConverter<T>.CaseHandling CaseHandlingMode { get; }
Property Value
| Type | Description |
|---|---|
| EnumBaseConverter.CaseHandling<> |
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
| Improve this Doc View SourceConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Attempts to convert the provided value to T.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.ComponentModel.ITypeDescriptorContext | context | |
| CultureInfo | culture | |
| Object | value |
Returns
| Type | Description |
|---|---|
| Object |
Overrides
| Improve this Doc View SourceConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Attempts to convert the value to the destination 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 |