FlagsEnumConverter Class

By extending the EnumConverter, this class provides a type converter for flags Enum instances (not necessarily but typically marked by FlagsAttribute) by providing Boolean properties for each flags in the specific Enum type.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0-rc.1
C#
public class FlagsEnumConverter : EnumConverter
Inheritance
Object    TypeConverter    EnumConverter    FlagsEnumConverter

Constructors

FlagsEnumConverter Creates an instance of the FlagsEnumConverter class.

Methods

GetProperties Retrieves the property descriptors for the enumeration fields. These property descriptors will be used by the property grid to show separate enumeration fields.
(Overrides TypeConverterGetProperties(ITypeDescriptorContext, Object, Attribute))
GetPropertiesSupported Returns whether this object supports properties, using the specified context.
(Overrides TypeConverterGetPropertiesSupported(ITypeDescriptorContext))
GetStandardValuesSupported Gets whether this object supports a standard set of values that can be picked from a list using the specified context.
(Overrides EnumConverterGetStandardValuesSupported(ITypeDescriptorContext))

Extension Methods

Convert Converts an Object specified in the obj parameter to the desired targetType.
See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example.
(Defined by ObjectExtensions)
ConvertTTarget Converts an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions)
In Gets whether item is among the elements of set.
See the Examples section of the generic InT(T, T) overload for an example.
(Defined by ObjectExtensions)
TryConvert Tries to convert an Object specified in the obj parameter to the desired targetType.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvert Tries to convert an Object specified in the obj parameter to the desired targetType.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvertTTarget Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvertTTarget Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)

See Also