Enumeration

UIControlContentHorizontalAlignment

The horizontal alignment of content (text and images) within a control.

Declaration

typedef enum UIControlContentHorizontalAlignment : NSInteger {
    ...
} UIControlContentHorizontalAlignment;

Overview

You use these constants as the value of the contentHorizontalAlignment property.

Topics

Constants

UIControlContentHorizontalAlignmentCenter

Aligns the content horizontally in the center of the control.

UIControlContentHorizontalAlignmentLeft

Aligns the content horizontally from the left of the control (the default).

UIControlContentHorizontalAlignmentRight

Aligns the content horizontally from the right of the control

UIControlContentHorizontalAlignmentFill

Aligns the content horizontally to fill the content rectangles; text may wrap and images may be stretched.

UIControlContentHorizontalAlignmentLeading

Aligns the content horizontally from the leading edge of the control.

UIControlContentHorizontalAlignmentTrailing

Aligns the content horizontally from the trailing edge of the control.

See Also

Configuring the Control’s Attributes

state

The state of the control, specified as a bitmask value.

enabled

A Boolean value indicating whether the control is enabled.

selected

A Boolean value indicating whether the control is in the selected state.

highlighted

A Boolean value indicating whether the control draws a highlight.

contentVerticalAlignment

The vertical alignment of content within the control’s bounds.

UIControlContentVerticalAlignment

Constants for specifying the vertical alignment of content (text and images) in a control.

contentHorizontalAlignment

The horizontal alignment of content within the control’s bounds.

effectiveContentHorizontalAlignment

The horizontal alignment currently in effect for the control.