Method | Description | |
---|---|---|
ConvertFrom ( ITypeDescriptorContext context, System culture, object value ) : object |
Returns an enum item from a string
|
|
ConvertTo ( ITypeDescriptorContext context, System culture, object value, |
Convert enum item to string
|
|
GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection |
Returns a collection of standard values from the default context for the data type this type converter is designed for.
|
|
RevitEnumConverter ( |
Initialize private variables
|
public ConvertFrom ( ITypeDescriptorContext context, System culture, object value ) : object | ||
context | ITypeDescriptorContext | An System.ComponentModel.ITypeDescriptorContext /// that provides a format context. |
culture | System | An optional System.Globalization.CultureInfo. /// If not supplied, the current culture is assumed. |
value | object | string to be converted to |
return | object |
public ConvertTo ( ITypeDescriptorContext context, System culture, object value, |
||
context | ITypeDescriptorContext | An ITypeDescriptorContext that provides a format context. |
culture | System | A CultureInfo. If null is passed, the current culture is assumed. |
value | object | The Object to convert. |
destinationType | The Type to convert the value parameter to. | |
return | object |
public GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection | ||
context | ITypeDescriptorContext | |
return | StandardValuesCollection |
public RevitEnumConverter ( |
||
type | Enumeration type | |
return | System |