Table of Contents

Class RangeAttribute

Namespace
Bonsai
Assembly
Bonsai.Core.dll

Specifies the valid range of values for a numeric property.

[AttributeUsage(AttributeTargets.Property)]
public sealed class RangeAttribute : Attribute, _Attribute
Inheritance
RangeAttribute
Implements
Inherited Members

Constructors

RangeAttribute(decimal, decimal)

Initializes a new instance of the RangeAttribute class with the specified minimum and maximum values.

RangeAttribute(double, double)

Initializes a new instance of the RangeAttribute class with the specified minimum and maximum values.

RangeAttribute(int, int)

Initializes a new instance of the RangeAttribute class with the specified minimum and maximum values.

RangeAttribute(long, long)

Initializes a new instance of the RangeAttribute class with the specified minimum and maximum values.

RangeAttribute(float, float)

Initializes a new instance of the RangeAttribute class with the specified minimum and maximum values.

Fields

Default

Specifies the default value for the RangeAttribute. This field is read-only.

Properties

Maximum

Gets the maximum value of the property this attribute is bound to.

Minimum

Gets the minimum value of the property this attribute is bound to.