Instance Method

setAlignment:

Sets the horizontal alignment of text within the bounds of the annotation.

Declaration

- (void)setAlignment:(NSTextAlignment)alignment;

Parameters

alignment

Send NSLeftTextAlignment, NSRightTextAlignment, or NSCenterTextAlignment to set the horizontal alignment of text within the bounds of the annotation.

See Also

Managing Text Alignment

- alignment

Returns the horizontal alignment of text within the bounds of the annotation.

Deprecated