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
-
DataMemberRangeAttribute
- 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
minimum
doubleThe minimum.
maximum
doubleThe maximum.
smallStep
doubleThe minimum step used to go from minimum to maximum.
largeStep
doubleThe maximum step used to go from minimum to maximum.
decimalPlaces
intThe 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.