Photon Fusion 2.0.3

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

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

Inherits DecoratingPropertyAttribute.

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 DecoratingPropertyAttribute
const int DefaultOrder = -10000
 The default order of the attribute. More...
 
- Protected Member Functions inherited from 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]

ArrayLengthAttribute ( int  length)

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

Parameters
lengthThe length of the array.

◆ ArrayLengthAttribute() [2/2]

ArrayLengthAttribute ( int  minLength,
int  maxLength 
)

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

◆ MaxLength

int MaxLength
get

Gets the maximum length of the array.

◆ MinLength

int MinLength
get

Gets the minimum length of the array.