Editor attribute for selecting the minimum and maximum length constraints for an array field.
More...
Inherits DecoratingPropertyAttribute.
|
| | 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.
|
|
| PropertyAttribute (bool applyToCollection=false) |
|
|
int | MaxLength [get] |
| | Gets the maximum length of the array.
|
|
int | MinLength [get] |
| | Gets the minimum length of the array.
|
|
new bool | applyToCollection [get] |
|
|
const int | DefaultOrder = -10000 |
| | The default order of the attribute.
|
|
| 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.
|
Editor attribute for selecting the minimum and maximum length constraints for an array field.
◆ ArrayLengthAttribute() [1/2]
| ArrayLengthAttribute |
( |
int | length | ) |
|
Initializes a new instance of the ArrayLengthAttribute class with the specified length.
- Parameters
-
| length | The 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
-
| minLength | The minimum length of the array. |
| maxLength | The maximum length of the array. |