HorizontalArrangement
Definition
Use a horizontal arrangement component to display a group of components laid out from left to right.
This component is a formatting element in which you place components that should be displayed from left to right. If you want to have components displayed one over another, use VerticalArrangement
instead.
In a HorizontalArrangement
, components are arranged along the horizontal axis, vertically center-aligned.
If a HorizontalArrangement
’s Height
property is set to Automatic
, the actual height of the arrangement is determined by the tallest component in the arrangement whose Height
property is not set to Fill Parent
. If a HorizontalArrangment
’s Height
property is set to Automatic
and it contains only components whose Height
properties are set to Fill Parent
, the actual height of the arrangement is calculated using the automatic heights of the components. If a HorizontalArrangement
’s Height
property is set to Automatic
and it is empty, the Height
will be 100.
If a HorizontalArrangement
’s Width
property is set to Automatic
, the actual width of the arrangement is determined by the sum of the widths of the components. If a HorizontalArrangement
’s Width
property is set to Automatic
, any components whose Width
properties are set to Fill Parent
will behave as if they were set to Automatic
.
If a HorizontalArrangement
’s Width
properties are set to Fill Parent
will equally take up the width not occupied by other components.
Properties
- AlignHorizontal
- A number that encodes how contents of the
HorizontalArrangement
are aligned horizontally. The choices are:1
= left aligned,2
= right aligned,3
= horizontally centered. Alignment has no effect if theHorizontalArrangement
’sWidth
isAutomatic
. - AlignVertical
- A number that encodes how the contents of the
HorizontalArrangement
are aligned vertically. The choices are:1
= aligned at the top,2
= vertically centered,3
= aligned at the bottom. Alignment has no effect if theHorizontalArrangement
’sHeight
isAutomatic
. - BackgroundColor
- Specifies the background color of the HorizontalArrangement as an alpha-red-green-blue integer. If an Image has been set, the color change will not be visible until the Image is removed.
- Height
- Specifies the
HorizontalArrangement
’s vertical height, measured in pixels. - HeightPercent
- Specifies the
HorizontalArrangement
’s vertical height as a percentage of theScreen
’sHeight
. - Image
- Specifies the path of the background image of the
HorizontalArrangement
. - Visible
- Specifies whether the
HorizontalArrangement
should be visible on the screen. Value istrue
if theHorizontalArrangement
is showing andfalse
if hidden. - Width
- Specifies the horizontal width of the
HorizontalArrangement
, measured in pixels. - WidthPercent
- Specifies the horizontal width of the
HorizontalArrangement
as a percentage of theScreen
’sWidth
.