| Package | qnx.ui.core |
| Class | public class ContainerAlign |
| Inheritance | ContainerAlign Object |
ContainerAlign class defines the align options for children within a Container.
The align property determines the position, or alignment, of each subcomponent in the direction opposite to the flow of the container. In a container with a vertical
flow, this specifies the horizontal position (or x coordinate) of the subcomponent, relative to the left edge of the container. Conversely, in a container with a horizontal flow, the
alignment specifies the vertical
position (or y coordinate) of the component relative to the top edge of the container.
The align property has three values: ContainerAlign.NEAR,
ContainerAlign.MID,and ContainerAlign.FAR, where each value represents a position relative to the initial edge of the container. ContainerAlign.NEAR
is the closest, ContainerAlign.FAR is the furthest. ContainerAlign.MID is the default.
The following image attempts to show all three alignment positions in a container with a vertical flow:
See also
| Constant | Defined By | ||
|---|---|---|---|
| FAR : String = far [static]
A constant used to align the child component to the far side of the container area. | ContainerAlign | ||
| MID : String = mid [static]
A constant used to align the child component to the center of the container area. | ContainerAlign | ||
| NEAR : String = near [static]
A constant used to align the child component to the near side of the container area. | ContainerAlign | ||
| FAR | Constant |
public static const FAR:String = farA constant used to align the child component to the far side of the container area.
| MID | Constant |
public static const MID:String = midA constant used to align the child component to the center of the container area.
| NEAR | Constant |
public static const NEAR:String = nearA constant used to align the child component to the near side of the container area.