MinMaxAttributeclass

Mark property as having a minimum and maximum value.

object→Attribute→MinMaxAttribute
Namespace
global
Assembly
Sandbox.System
Declaration
public class MinMaxAttribute : System.Attribute

Constructors1

Showing 1 constructors

public MinMaxAttribute(float min, float max)PUBLICCONSTRUCTOR

ParameterTypeDescription
minfloat—
maxfloat—

Properties2

Showing 2 properties

public float MinMaxAttribute.MaxValue { get; set; }PUBLICGETSET

The maximum value for this property.

Returns:float—

public float MinMaxAttribute.MinValue { get; set; }PUBLICGETSET

The minimum value for this property.

Returns:float—

On this page