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... | |
Editor attribute for selecting the minimum and maximum length constraints for an array field.
ArrayLengthAttribute | ( | int | length | ) |
Initializes a new instance of the ArrayLengthAttribute class with the specified length.
length | The length of the array. |
ArrayLengthAttribute | ( | int | minLength, |
int | maxLength | ||
) |
Initializes a new instance of the ArrayLengthAttribute class with the specified minimum and maximum lengths.
minLength | The minimum length of the array. |
maxLength | The maximum length of the array. |
|
get |
Gets the maximum length of the array.
|
get |
Gets the minimum length of the array.