Method | Description | |
---|---|---|
CanConvertFrom ( ITypeDescriptorContext typeDescriptorContext, |
Determines whether conversion is possible from a specified type to a Double that represents an object's length.
|
|
CanConvertTo ( ITypeDescriptorContext typeDescriptorContext, |
Determines whether conversion is possible to a specified type from a Double that represents an object's length.
|
|
ConvertFrom ( ITypeDescriptorContext typeDescriptorContext, |
Converts instances of other data types into instances of Double that represent an object's length.
|
|
ConvertTo ( ITypeDescriptorContext typeDescriptorContext, |
Converts other types into instances of Double that represent an object's length.
|
|
LengthConverter ( ) : System |
Initialize a new instance of the LengthConverter class.
|
public CanConvertFrom ( ITypeDescriptorContext typeDescriptorContext, |
||
typeDescriptorContext | ITypeDescriptorContext | An ITypeDescriptorContext that provides a format context. |
sourceType | An ITypeDescriptorContext that provides a format context. | |
return | bool |
public CanConvertTo ( ITypeDescriptorContext typeDescriptorContext, |
||
typeDescriptorContext | ITypeDescriptorContext | Provides contextual information about a component. |
destinationType | Identifies the data type to evaluate for conversion. | |
return | bool |
public ConvertFrom ( ITypeDescriptorContext typeDescriptorContext, |
||
typeDescriptorContext | ITypeDescriptorContext | An ITypeDescriptorContext that provides a format context. |
cultureInfo | The CultureInfo to use as the current culture. | |
source | object | Identifies the object that is being converted to Double. |
return | object |
public ConvertTo ( ITypeDescriptorContext typeDescriptorContext, |
||
typeDescriptorContext | ITypeDescriptorContext | Describes context information of a component, such as its container and PropertyDescriptor. |
cultureInfo | Identifies culture-specific information, including the writing system and the calendar that is used. | |
value | object | Identifies the Object that is being converted. |
destinationType | The data type that this instance of Double is being converted to. | |
return | object |