Photon Fusion 2.1.1

ArrayLengthAttribute Class Referencesealed

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.
 ArrayLengthAttribute (int minLength, int maxLength)
 Initializes a new instance of the ArrayLengthAttribute class with the specified minimum and maximum lengths.
Public Member Functions inherited from PropertyAttribute
 PropertyAttribute (bool applyToCollection=false)

Properties

int MaxLength [get]
 Gets the maximum length of the array.
int MinLength [get]
 Gets the minimum length of the array.
Properties inherited from PropertyAttribute
new bool applyToCollection [get]

Additional Inherited Members

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

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.