new defArrange()
The exontrol.Def.Surface.defArrange type holds different options to auto-arrange the elements using the Arrange method.
Specifies an object of {dir, dx, dy, align, compact} type to customize the arrangement of the elements using the Arrange method.
Members
(static) align :number
The align property specifies the alignment of the elements relative to incoming/outgoing elements during the Arrange operation.
Indicates a numeric value as follows:
- 0 {number}, indicates left/top alignment
- 1 {number}, indicates center alignment
- 2 {number}, specifies right/bottom alignment
Type:
- number
(static) compact :boolean
The compact field specifies whether the layout is compacted during the Arrange method.
Type:
- boolean
(static) dir :number
The dir property specifies the direction to auto-arrange the elements.
Specifies a numeric value as follows:
0 {number}, specifies horizontal arrangement, which indicates that the out-elements are arranged to the right.
1 {number}, specifies vertical arrangement, which indicates that the out-elements are arranged to the bottom.
Currently, any other value has no effect
Type:
- number
(static) dx :number
The dx property specifies the distance between two auto-arranged elements on horizontal axis. You can use the dx field to increase or decrease the distance of the arranged elements.
Type:
- number
(static) dy :number
The dy property specifies the distance between two auto-arranged elements on vertical axis. You can use the dx field to increase or decrease the distance of the arranged elements.
Type:
- number