Table of Contents

Class RangeAttribute

Namespace
KeenEyes
Assembly
KeenEyes.Abstractions.dll

Constrains a numeric field to a range and displays it as a slider.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
[ExcludeFromCodeCoverage]
public sealed class RangeAttribute : Attribute
Inheritance
RangeAttribute
Inherited Members

Constructors

RangeAttribute(float, float)

Constrains a numeric field to a range and displays it as a slider.

public RangeAttribute(float min, float max)

Parameters

min float

The minimum value.

max float

The maximum value.

Properties

Max

Gets the maximum value.

public float Max { get; }

Property Value

float

Min

Gets the minimum value.

public float Min { get; }

Property Value

float