Class SettingPropertyIntegerAttribute
- Namespace
- MCM.Abstractions.Attributes.v2
- Assembly
- MCMv5.dll
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class SettingPropertyIntegerAttribute : BaseSettingPropertyAttribute, IPropertyDefinitionBase, IPropertyDefinitionWithMinMax, IPropertyDefinitionWithFormat, IPropertyDefinitionWithCustomFormatter
- Inheritance
-
SettingPropertyIntegerAttribute
- Implements
- Inherited Members
Constructors
SettingPropertyIntegerAttribute(string, int, int, string)
public SettingPropertyIntegerAttribute(string displayName, int minValue, int maxValue, string valueFormat = "0")
Parameters
Properties
CustomFormatter
public Type? CustomFormatter { get; set; }
Property Value
MaxValue
The maximum value the setting can be set to. Used by the slider control.
public decimal MaxValue { get; }
Property Value
MinValue
The minimum value the setting can be set to. Used by the slider control.
public decimal MinValue { get; }
Property Value
ValueFormat
The format in which the slider's value will be displayed in.
public string ValueFormat { get; }