메소드 | 설명 | |
---|---|---|
CanResetValue ( object component ) : bool |
Retrieves a value indicating whether the enumeration field can be reset to the default value.
|
|
EnumFieldDescriptor ( |
Creates an instance of the enumeration field descriptor class.
|
|
GetValue ( object component ) : object |
Retrieves the value of the enumeration field.
|
|
ResetValue ( object component ) : void |
Resets the enumeration field to its default value.
|
|
SetValue ( object component, object value ) : void |
Sets the value of the enumeration field.
|
|
ShouldSerializeValue ( object component ) : bool |
Retrieves a value indicating whether the enumeration field is set to a non-default value.
|
메소드 | 설명 | |
---|---|---|
GetDefaultValue ( ) : bool |
Retrieves the enumerations field’s default value.
|
public EnumFieldDescriptor ( |
||
componentType | The type of the enumeration. | |
name | string | The name of the enumeration field. |
context | ITypeDescriptorContext | The current context. |
리턴 | System |
public GetValue ( object component ) : object | ||
component | object | /// The instance of the enumeration type which to retrieve the field value for. /// |
리턴 | object |
public SetValue ( object component, object value ) : void | ||
component | object | /// The instance of the enumeration type which to set the field value to. /// |
value | object | /// True if the enumeration field should included to the enumeration; /// otherwise, False. /// |
리턴 | void |
public ShouldSerializeValue ( object component ) : bool | ||
component | object | |
리턴 | bool |