Class FloatRangeAttribute
- Namespace
- OmegaEngine.Foundation.Design
- Assembly
- OmegaEngine.Foundation.dll
Stores the minimum and maximum values allowed for a float field or property. Controls the behaviour of AngleEditor.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class FloatRangeAttribute : Attribute, _Attribute
- Inheritance
-
FloatRangeAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
FloatRangeAttribute(float, float)
Creates a new float range attribute.
public FloatRangeAttribute(float minimum, float maximum)
Parameters
minimum
floatThe minimum value the field or property may have.
maximum
floatThe maximum value the field or property may have.
Properties
Maximum
The maximum value the field or property may have.
public float Maximum { get; }
Property Value
Minimum
The minimum value the field or property may have.
public float Minimum { get; }