EnumDescriptor Members

Constructors

Name Description
EnumDescriptor(Type)

Creates and initializes a new instance of the EnumDescriptor class.

EnumDescriptor(Type, Dictionary<String, String>)

Creates and initializes a new instance of the EnumDescriptor class.

Properties

Name Description
Captions

Specifies the display captions associated with the values of the enumeration represented by the EnumDescriptor.

EnumType

Specifies the underlying type of the enumeration represented by the EnumDescriptor.

IsNullable

Indicates whether the enumeration represented by the EnumDescriptor is nullable.

Values

Specifies the values of the enumeration represented by the EnumDescriptor.

Methods

Name Description
GenerateDefaultCaptions(IModelLocalizationGroup, Type)

Generates LocalizationItem nodes corresponding to the values of an enumeration.

GenerateDefaultCaptions(IModelLocalizationGroup, Type, CompoundNameConvertStyle)

Generates LocalizationItem nodes corresponding to the values of an enumeration.

GetCaption(Int32)

Returns the display caption associated with a specified value of the enumeration represented by the EnumDescriptor.

GetCaption(Object)

Returns the display caption associated with a specified value of the enumeration represented by the EnumDescriptor.

GetCaption(String)

Returns the display caption associated with a specified value of the enumeration represented by the EnumDescriptor.

GetEnumType(Type)

Returns the underlying type of a specified enumeration.

GetImageInfo(Object)

Supplies metadata on the image associated with a particular value of the enumeration represented by the EnumDescriptor.

GetNullableEnumType(Type)
ParseCaption(String)

Returns the enumeration value corresponding to a particular display caption.