Property | Type | Description | |
---|---|---|---|
Cities | List |
Method | Description | |
---|---|---|
CanConvertFrom ( ITypeDescriptorContext context, |
Converts from string.
|
|
CanConvertTo ( ITypeDescriptorContext context, |
Converts to string.
|
|
ConvertFrom ( ITypeDescriptorContext context, System culture, object value ) : object |
Returns an element from a string contains its id
|
|
ConvertTo ( ITypeDescriptorContext context, System culture, object value, |
Returns element name. returns empty string if value is null or Element.Name throws an exception.
|
|
GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection |
Returns a collection of standard values from the default context for the data type this type converter is designed for.
|
|
GetStandardValuesExclusive ( ITypeDescriptorContext context ) : bool |
Returns whether the collection of standard values returned from System.ComponentModel.TypeConverter.GetStandardValues() is an exclusive list.
|
|
GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool |
Returns whether this object supports a standard set of values that can be picked from a list, using the specified context.
|
Method | Description | |
---|---|---|
CityConverter ( ) : System |
public CanConvertFrom ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | |
sourceType | ||
return | bool |
public CanConvertTo ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext | |
destinationType | ||
return | bool |
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 an element |
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 GetStandardValuesExclusive ( ITypeDescriptorContext context ) : bool | ||
context | ITypeDescriptorContext | |
return | bool |
public GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool | ||
context | ITypeDescriptorContext | |
return | bool |