Class EnumOption
Represents a single option in an enum-style setting, pairing a machine-readable value with a localizable display name and optional description.
Inherited Members
Namespace: Zaya.Primitives
Assembly: Zaya.Primitives.dll
Syntax
public class EnumOption
Constructors
| Edit this page View SourceEnumOption(string, LocalizedString, LocalizedString?)
Initializes a new instance of the EnumOption class.
Declaration
public EnumOption(string value, LocalizedString displayName, LocalizedString? description = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | Machine-readable option value. |
| LocalizedString | displayName | UI display name. |
| LocalizedString | description | Optional description (tooltip). |
Properties
| Edit this page View SourceDescription
Gets the optional localizable description (tooltip / help text).
Declaration
public LocalizedString? Description { get; }
Property Value
| Type | Description |
|---|---|
| LocalizedString |
DisplayName
Gets the localizable display name shown in the UI.
Declaration
public LocalizedString DisplayName { get; }
Property Value
| Type | Description |
|---|---|
| LocalizedString |
Value
Gets the machine-readable value (e.g. "snippingtool", "directory").
Declaration
public string Value { get; }
Property Value
| Type | Description |
|---|---|
| string |