DataMemberRangeAttribute Class
Namespace: Stride.Core.AnnotationsAssembly: Stride.Core.dll
Defines range values for a property or field.
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class DataMemberRangeAttribute : Attribute
Remarks
Name | Description | |
---|---|---|
Constructors | ||
DataMemberRangeAttribute(Double, Double) | Initializes a new instance of the DataMemberRangeAttribute class. |
|
DataMemberRangeAttribute(Double, Double, Double, Double) | Initializes a new instance of the DataMemberRangeAttribute class. |
|
DataMemberRangeAttribute(Double, Double, Double, Double, Int32) | Initializes a new instance of the DataMemberRangeAttribute class. |
|
DataMemberRangeAttribute(Double, Double, Int32) | Initializes a new instance of the DataMemberRangeAttribute class. |
|
DataMemberRangeAttribute(Double, Int32) | Initializes a new instance of the DataMemberRangeAttribute class. |
|
Properties | ||
DecimalPlaces | Gets the decimal places. |
|
LargeStep | Gets the maximum step. |
|
Maximum | Gets the maximum inclusive. |
|
Minimum | Gets the minimum inclusive. |
|
SmallStep | Gets the minimum step. |
Constructors
DataMemberRangeAttribute(Double, Double)
Initializes a new instance of the DataMemberRangeAttribute class.
[Obsolete("This method will be removed in a future release. Use DataMemberRangeAttribute(double minimum, double maximum, double smallStep, double largeStep, int decimalPlaces) instead")]
public DataMemberRangeAttribute(double minimum, double maximum)
Parameters
Type | Name | Description |
---|---|---|
System.Double | minimum | The minimum. |
System.Double | maximum | The maximum. |
DataMemberRangeAttribute(Double, Double, Double, Double)
Initializes a new instance of the DataMemberRangeAttribute class.
[Obsolete("This method will be removed in a future release. Use DataMemberRangeAttribute(double minimum, double maximum, double smallStep, double largeStep, int decimalPlaces) instead")]
public DataMemberRangeAttribute(double minimum, double maximum, double smallStep, double largeStep)
Parameters
Type | Name | Description |
---|---|---|
System.Double | minimum | The minimum. |
System.Double | maximum | The maximum. |
System.Double | smallStep | The minimum step used to go from minimum to maximum. |
System.Double | largeStep | The maximum step. |
DataMemberRangeAttribute(Double, Double, Double, Double, Int32)
Initializes a new instance of the DataMemberRangeAttribute class.
public DataMemberRangeAttribute(double minimum, double maximum, double smallStep, double largeStep, int decimalPlaces)
Parameters
Type | Name | Description |
---|---|---|
System.Double | minimum | The minimum. |
System.Double | maximum | The maximum. |
System.Double | smallStep | The minimum step used to go from minimum to maximum. |
System.Double | largeStep | The maximum step used to go from minimum to maximum. |
System.Int32 | decimalPlaces | The decimal places. |
DataMemberRangeAttribute(Double, Double, Int32)
Initializes a new instance of the DataMemberRangeAttribute class.
[Obsolete("This method will be removed in a future release. Use DataMemberRangeAttribute(double minimum, double maximum, double smallStep, double largeStep, int decimalPlaces) instead")]
public DataMemberRangeAttribute(double minimum, double maximum, int decimalPlaces)
Parameters
Type | Name | Description |
---|---|---|
System.Double | minimum | The minimum. |
System.Double | maximum | The maximum. |
System.Int32 | decimalPlaces | The decimal places |
DataMemberRangeAttribute(Double, Int32)
Initializes a new instance of the DataMemberRangeAttribute class.
public DataMemberRangeAttribute(double minimum, int decimalPlaces)
Parameters
Type | Name | Description |
---|---|---|
System.Double | minimum | The minimum. |
System.Int32 | decimalPlaces | The decimal places |
Properties
DecimalPlaces
Gets the decimal places.
public int? DecimalPlaces { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | The decimal places. |
LargeStep
Gets the maximum step.
public double? LargeStep { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> | The maximum step. |
Maximum
Gets the maximum inclusive.
public double? Maximum { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> | The maximum. |
Minimum
Gets the minimum inclusive.
public double? Minimum { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> | The minimum. |
SmallStep
Gets the minimum step.
public double? SmallStep { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> | The minimum step. |