Table of Contents

Method SetValuesAndLabels

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

SetValuesAndLabels<TEnum>()

Set Values and Labels from an enum type.

public void SetValuesAndLabels<TEnum>() where TEnum : struct, Enum

Type Parameters

TEnum

The enum type to extract from

Remarks

This is a convenience method that converts an enum to a dictionary of values and labels. The enum values are converted to int values and the enum names become the labels.