Table of Contents

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

Minimum, Maximum and SmallStep must have the same type

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 double

The minimum.

maximum double

The maximum.

smallStep double

The minimum step used to go from minimum to maximum.

largeStep double

The maximum step used to go from minimum to maximum.

decimalPlaces int

The decimal places.

DataMemberRangeAttribute(double, int)

Initializes a new instance of the DataMemberRangeAttribute class.

public DataMemberRangeAttribute(double minimum, int decimalPlaces)

Parameters

minimum double

The minimum.

decimalPlaces int

The decimal places

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.