Class DataMemberRangeAttribute
- Namespace
- Stride.Core.Annotations
- Assembly
- Stride.Core.dll
Defines range values for a property or field.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class DataMemberRangeAttribute : Attribute- Inheritance
- 
      objectDataMemberRangeAttribute
- Inherited Members
Remarks
Constructors
DataMemberRangeAttribute(double, double, double, double, int)
Initializes a new instance of the DataMemberRangeAttribute class.
public DataMemberRangeAttribute(double minimum, double maximum, double smallStep, double largeStep, int decimalPlaces)Parameters
- minimumdouble
- The minimum. 
- maximumdouble
- The maximum. 
- smallStepdouble
- The minimum step used to go from minimum to maximum. 
- largeStepdouble
- The maximum step used to go from minimum to maximum. 
- decimalPlacesint
- The decimal places. 
DataMemberRangeAttribute(double, int)
Initializes a new instance of the DataMemberRangeAttribute class.
public DataMemberRangeAttribute(double minimum, int decimalPlaces)Parameters
Properties
DecimalPlaces
Gets the decimal places.
public int? DecimalPlaces { get; }Property Value
- int?
- The decimal places. 
LargeStep
Gets the maximum step.
public double? LargeStep { get; }Property Value
- double?
- The maximum step. 
Maximum
Gets the maximum inclusive.
public double? Maximum { get; }Property Value
- double?
- The maximum. 
Minimum
Gets the minimum inclusive.
public double? Minimum { get; }Property Value
- double?
- The minimum. 
SmallStep
Gets the minimum step.
public double? SmallStep { get; }Property Value
- double?
- The minimum step.