net472_PropertyGridHelpers.Controls_FlagCheckedListBox_Converter - dparvin/PropertyGridHelpers GitHub Wiki

FlagCheckedListBox.Converter property

Gets or sets the EnumConverter used to control how the enum values are displayed in the list.

public EnumConverter Converter { get; set; }

Property Value

A custom EnumConverter instance for customizing enum display.

Remarks

This property allows you to provide a custom converter that defines how enum values are rendered in the UI—for example, displaying localized or user-friendly names instead of the raw enum identifiers. If no converter is set, the enum field names are used as-is. This is especially useful when the enum values are annotated with custom attributes (e.g., EnumTextAttribute) and you want those descriptions to be shown in the UI. This property should be assigned before setting EnumValue, as it affects how the list is populated.

Examples

var listBox = new FlagCheckedListBox();
listBox.Converter = new EnumTextConverter(typeof(MyFlagsEnum));
listBox.EnumValue = MyFlagsEnum.OptionA | MyFlagsEnum.OptionB;

See Also

⚠️ **GitHub.com Fallback** ⚠️