Table of Contents

Class SettingPropertyFloatingIntegerAttribute

Namespace
MCM.Abstractions.Attributes.v2
Assembly
MCMv5.dll
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class SettingPropertyFloatingIntegerAttribute : BaseSettingPropertyAttribute, IPropertyDefinitionBase, IPropertyDefinitionWithMinMax, IPropertyDefinitionWithFormat, IPropertyDefinitionWithCustomFormatter
Inheritance
SettingPropertyFloatingIntegerAttribute
Implements
Inherited Members

Constructors

SettingPropertyFloatingIntegerAttribute(string, float, float, string)

public SettingPropertyFloatingIntegerAttribute(string displayName, float minValue, float maxValue, string valueFormat = "0.00")

Parameters

displayName string
minValue float
maxValue float
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

This page was last modified at 12/23/2022 11:49:56 +02:00 (UTC).

Commit Message
Author:    Aragas
Commit:    aa889a1db7974dc13c9ff22e5740d958a2228b18
* Added MCM Source Package NuGet for easier integration