AcceptableValueRange<T> Class
Definition
Section titled “Definition”Specify the range of acceptable values for a setting.
public class AcceptableValueRange<T> : AcceptableValueBase where T : IComparable
Type Parameters
Section titled “Type Parameters”T
Inheritance object → AcceptableValueBase
Constructors
Section titled “Constructors”AcceptableValueRange(T, T)
Section titled “AcceptableValueRange(T, T)”public AcceptableValueRange(T minValue, T maxValue)
Parameters
Section titled “Parameters”minValue
T
Lowest acceptable value
maxValue
T
Highest acceptable value
Properties
Section titled “Properties”MinValue
Section titled “MinValue”Lowest acceptable value
public virtual T MinValue { get; }
MaxValue
Section titled “MaxValue”Highest acceptable value
public virtual T MaxValue { get; }
Methods
Section titled “Methods”Clamp(object)
Section titled “Clamp(object)”Change the value to be acceptable, if it’s not already.
public override object Clamp(object value)
Parameters
Section titled “Parameters”value
object
Returns
Section titled “Returns”IsValid(object)
Section titled “IsValid(object)”Check if the value is an acceptable value.
public override bool IsValid(object value)
Parameters
Section titled “Parameters”value
object
Returns
Section titled “Returns”ToDescriptionString()
Section titled “ToDescriptionString()”Get the string for use in config files.
public override string ToDescriptionString()