Class IntegerSettingDescriptor
Descriptor for an integer numeric setting. Supports min/max range clamping.
Inherited Members
Namespace: Zaya.Primitives
Assembly: Zaya.Primitives.dll
Syntax
public sealed class IntegerSettingDescriptor : SettingDescriptor
Constructors
| Edit this page View SourceIntegerSettingDescriptor(string, LocalizedString)
Initializes a new instance of the IntegerSettingDescriptor class.
Declaration
public IntegerSettingDescriptor(string key, LocalizedString displayName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Machine-readable key for this setting. |
| LocalizedString | displayName | Localizable UI label. |
Properties
| Edit this page View SourceDefaultValue
Gets or sets the default integer value.
Declaration
public int? DefaultValue { get; init; }
Property Value
| Type | Description |
|---|---|
| int? |
MaxValue
Gets or sets the maximum allowed value (inclusive).
Declaration
public int? MaxValue { get; init; }
Property Value
| Type | Description |
|---|---|
| int? |
MinValue
Gets or sets the minimum allowed value (inclusive).
Declaration
public int? MinValue { get; init; }
Property Value
| Type | Description |
|---|---|
| int? |