Method SetLabelForValue
SetLabelForValue<T>(T, string)
Sets item title for the given enum value.
void SetLabelForValue<T>(T value, string label) where T : Enum
Parameters
value
TItem value (id).
label
stringNew item title.
Type Parameters
T
Type of the item value.
Examples
var localizableEnum = PropertyGrid.GetChoices<BrushType>();
localizableEnum.SetLabelForValue<BrushType>(
BrushType.LinearGradient, "Linear Gradient");
SetLabelForValue(int, string)
Sets item title for the given item value.
void SetLabelForValue(int value, string label)