Table of Contents

Method SetLabelForValue

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetLabelForValue<T>(T, string)

Sets item title for the given enum value.

void SetLabelForValue<T>(T value, string label) where T : Enum

Parameters

value T

Item value (id).

label string

New 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)

Parameters

value int

Item value (id).

label string

New item title.