Method | Description | |
---|---|---|
CanConvertFrom ( ITypeDescriptorContext context, |
Override the CanConvertFrom method.
|
|
CanConvertTo ( ITypeDescriptorContext context, |
Override the CanConvertTo method.
|
|
ConvertFrom ( ITypeDescriptorContext context, System culture, object value ) : object |
Override the ConvertFrom method, convert a string type value to a level type value.
|
|
ConvertTo ( ITypeDescriptorContext context, System culture, object value, |
Override the ConvertTo method, convert a level type value to a string type value for displaying in the PropertyGrid.
|
|
GetLevelByID ( int id ) : Level |
Get a level by a level id.
|
|
GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection |
Override the StandardValuesCollection method for supplying a level list in the PropertyGrid.
|
|
GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool |
Override the GetStandardValuesSupported method for displaying a level list in the PropertyGrid.
|
|
SetStandardValues ( ReadOnlyCollection |
Initialize the levels data.
|
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 | |
culture | System | |
value | object | |
return | object |
public ConvertTo ( ITypeDescriptorContext context, System culture, object value, |
||
context | ITypeDescriptorContext | |
culture | System | |
value | object | |
destinationType | ||
return | object |
public static GetLevelByID ( int id ) : Level | ||
id | int | The id of the level |
return | Level |
public GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection | ||
context | ITypeDescriptorContext | |
return | StandardValuesCollection |
public GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool | ||
context | ITypeDescriptorContext | |
return | bool |
public static SetStandardValues ( ReadOnlyCollection |
||
levels | ReadOnlyCollection |
|
return | void |