Instance Method

initWithTextAlignment:location:options:

Initializes a text tab with the specified text alignment, location, and options.

Declaration

- (instancetype)initWithTextAlignment:(NSTextAlignment)alignment location:(CGFloat)loc options:(NSDictionary<NSTextTabOptionKey, id> *)options;

Parameters

alignment

The alignment of the text.

loc

The position of the text tab on the ruler, relative to the back margin.

options

Options to apply to the text tab.

Return Value

An initialized text tab.

Discussion

The text alignment is used to determine the position of text inside the tab column. See NSTextTabType for a mapping between alignments and tab stop types