DefArrange class (Surface)

DefArrange()

new DefArrange()

The DefArrange type represents the default arrangement options for auto-arranging elements in a surface control. The defArrange field of Surface.Options object uses this type to define how elements should be arranged when the Arrange method is called.

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
align

(static) compact :boolean

The compact property compacts the layout during the Arrange method.
Type:
  • boolean
compact

(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
dir

(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
dx

(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
dy