C# Class nHydrate.Dsl.Design.Converters.VisibilityTypeEnumConverter

Flags enumeration type converter.
Inheritance: System.ComponentModel.EnumConverter
Show file Open project: nHydrate/nHydrate

Public Methods

Method Description
CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destinationType ) : object
GetProperties ( ITypeDescriptorContext context, object value, Attribute attributes ) : PropertyDescriptorCollection

Retrieves the property descriptors for the enumeration fields. These property descriptors will be used by the property grid to show separate enumeration fields.

GetPropertiesSupported ( ITypeDescriptorContext context ) : bool
GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool
VisibilityTypeEnumConverter ( Type type ) : System

Creates an instance of the FlagsEnumConverter class.

Method Details

CanConvertTo() public method

public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext
destinationType System.Type
return bool

ConvertTo() public method

public ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System
value object
destinationType System.Type
return object

GetProperties() public method

Retrieves the property descriptors for the enumeration fields. These property descriptors will be used by the property grid to show separate enumeration fields.
public GetProperties ( ITypeDescriptorContext context, object value, Attribute attributes ) : PropertyDescriptorCollection
context ITypeDescriptorContext The current context.
value object A value of an enumeration type.
attributes System.Attribute
return System.ComponentModel.PropertyDescriptorCollection

GetPropertiesSupported() public method

public GetPropertiesSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
return bool

GetStandardValuesSupported() public method

public GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
return bool

VisibilityTypeEnumConverter() public method

Creates an instance of the FlagsEnumConverter class.
public VisibilityTypeEnumConverter ( Type type ) : System
type System.Type The type of the enumeration.
return System