Photon Quantum 3.0.0

Public Member Functions | Properties | List of all members
Quantum.ArrayLengthAttribute Class Reference

Editor attribute for selecting the minimum and maximum length constraints for an array field. More...

Inheritance diagram for Quantum.ArrayLengthAttribute:
Quantum.DecoratingPropertyAttribute Quantum.PropertyAttribute

Public Member Functions

 ArrayLengthAttribute (int length)
 Initializes a new instance of the ArrayLengthAttribute class with the specified length. More...
 
 ArrayLengthAttribute (int minLength, int maxLength)
 Initializes a new instance of the ArrayLengthAttribute class with the specified minimum and maximum lengths. More...
 

Properties

int MaxLength [get]
 Gets the maximum length of the array. More...
 
int MinLength [get]
 Gets the minimum length of the array. More...
 

Additional Inherited Members

- Static Public Attributes inherited from Quantum.DecoratingPropertyAttribute
const int DefaultOrder = -10000
 The default order of the attribute. More...
 
- Protected Member Functions inherited from Quantum.DecoratingPropertyAttribute
 DecoratingPropertyAttribute ()
 Initializes a new instance with the default order. More...
 
 DecoratingPropertyAttribute (int order)
 Initializes a new instance with the specified order. More...
 

Detailed Description

Editor attribute for selecting the minimum and maximum length constraints for an array field.

Constructor & Destructor Documentation

◆ ArrayLengthAttribute() [1/2]

Quantum.ArrayLengthAttribute.ArrayLengthAttribute ( int  length)
inline

Initializes a new instance of the ArrayLengthAttribute class with the specified length.

Parameters
lengthThe length of the array.

◆ ArrayLengthAttribute() [2/2]

Quantum.ArrayLengthAttribute.ArrayLengthAttribute ( int  minLength,
int  maxLength 
)
inline

Initializes a new instance of the ArrayLengthAttribute class with the specified minimum and maximum lengths.

Parameters
minLengthThe minimum length of the array.
maxLengthThe maximum length of the array.

Property Documentation

◆ MinLength

int Quantum.ArrayLengthAttribute.MinLength
get

Gets the minimum length of the array.

◆ MaxLength

int Quantum.ArrayLengthAttribute.MaxLength
get

Gets the maximum length of the array.