Table of Contents

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

displayName string
minValue int
maxValue int
valueFormat string

Properties

CustomFormatter

public Type? CustomFormatter { get; set; }

Property Value

Type

MaxValue

The maximum value the setting can be set to. Used by the slider control.

public decimal MaxValue { get; }

Property Value

decimal

MinValue

The minimum value the setting can be set to. Used by the slider control.

public decimal MinValue { get; }

Property Value

decimal

ValueFormat

The format in which the slider's value will be displayed in.

public string ValueFormat { get; }

Property Value

string