FlagsEnumConverterGetProperties Method
Retrieves the property descriptors for the enumeration fields.
These property descriptors will be used by the property grid
to show separate enumeration fields.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public override PropertyDescriptorCollection? GetProperties(
ITypeDescriptorContext? context,
Object value,
Attribute[]? attributes
)
Public Overrides Function GetProperties (
context As ITypeDescriptorContext,
value As Object,
attributes As Attribute()
) As PropertyDescriptorCollection
public:
virtual PropertyDescriptorCollection^ GetProperties(
ITypeDescriptorContext^ context,
Object^ value,
array<Attribute^>^ attributes
) override
abstract GetProperties :
context : ITypeDescriptorContext *
value : Object *
attributes : Attribute[] -> PropertyDescriptorCollection
override GetProperties :
context : ITypeDescriptorContext *
value : Object *
attributes : Attribute[] -> PropertyDescriptorCollection
- context ITypeDescriptorContext
- An ITypeDescriptorContext that provides a format context. If specified, will be used to determine the DefaultValueAttribute of
the converted enum, and to set the enum property of the container instance if one of the flags are set.
- value Object
- The Enum instance to get the flags for.
- attributes Attribute
- An array of type Attribute that is used as a filter. In this method this parameter is ignored.
PropertyDescriptorCollectionA
PropertyDescriptorCollection with the flags of the
Enum type designated by
value as
Boolean properties.