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.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0
C#
public override PropertyDescriptorCollection? GetProperties(
	ITypeDescriptorContext? context,
	Object value,
	Attribute[]? attributes
)

Parameters

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.

Return Value

PropertyDescriptorCollection
A PropertyDescriptorCollection with the flags of the Enum type designated by value as Boolean properties.

See Also