HorizontalAlignment

Since: BlackBerry 10.0.0

#include <bb/cascades/HorizontalAlignment>

Ways to horizontally align a control within its parent container.

Horizontal alignment can be set on a control using the Control::horizontalAlignment property. Setting the alignment only has an effect on controls within a StackLayout or DockLayout. Controls in an AbsoluteLayout are not affected.

The default alignment is Left.


Overview

Public Types Index

enum Type

Left, Right, Center, Fill

Public Types

Type

Specifies the horizontal alignment of the control within its parent container.

Since:

BlackBerry 10.0.0

Left

Aligns to the left; this is the default alignment.

Right

Aligns to the right.

Since:

BlackBerry 10.0.0

Center

Aligns on the horizontal center.

Since:

BlackBerry 10.0.0

Fill

Expands to fill the available width.

Since:

BlackBerry 10.0.0

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus