C# 클래스 nHydrate.Dsl.Design.Converters.ModuleRuleInclusionEnumConverter.EnumFieldDescriptor

This class represents an enumeration field in the property grid.
상속: SimplePropertyDescriptor
파일 보기 프로젝트 열기: nHydrate/nHydrate

공개 메소드들

메소드 설명
CanResetValue ( object component ) : bool

Retrieves a value indicating whether the enumeration field can be reset to the default value.

EnumFieldDescriptor ( Type componentType, string name, ITypeDescriptorContext context ) : System

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.

메소드 상세

CanResetValue() 공개 메소드

Retrieves a value indicating whether the enumeration field can be reset to the default value.
public CanResetValue ( object component ) : bool
component object
리턴 bool

EnumFieldDescriptor() 공개 메소드

Creates an instance of the enumeration field descriptor class.
public EnumFieldDescriptor ( Type componentType, string name, ITypeDescriptorContext context ) : System
componentType System.Type The type of the enumeration.
name string The name of the enumeration field.
context ITypeDescriptorContext The current context.
리턴 System

GetValue() 공개 메소드

Retrieves the value of the enumeration field.
public GetValue ( object component ) : object
component object /// The instance of the enumeration type which to retrieve the field value for. ///
리턴 object

ResetValue() 공개 메소드

Resets the enumeration field to its default value.
public ResetValue ( object component ) : void
component object
리턴 void

SetValue() 공개 메소드

Sets the value of the enumeration field.
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

ShouldSerializeValue() 공개 메소드

Retrieves a value indicating whether the enumeration field is set to a non-default value.
public ShouldSerializeValue ( object component ) : bool
component object
리턴 bool