Class RangeAttribute
- Namespace
- KeenEyes
- Assembly
- KeenEyes.Abstractions.dll
Constrains a numeric field to a range and displays it as a slider.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
[ExcludeFromCodeCoverage]
public sealed class RangeAttribute : Attribute
- Inheritance
-
RangeAttribute
- Inherited Members
Constructors
RangeAttribute(float, float)
Constrains a numeric field to a range and displays it as a slider.
public RangeAttribute(float min, float max)
Parameters
Properties
Max
Gets the maximum value.
public float Max { get; }
Property Value
Min
Gets the minimum value.
public float Min { get; }