Instance Method

layoutManager(_:shouldUse:forControlCharacterAt:)

Returns the control character action for the control character at the given character index.

Declaration

optional func layoutManager(_ layoutManager: NSLayoutManager, shouldUse action: NSLayoutManager.ControlCharacterAction, forControlCharacterAt charIndex: Int) -> NSLayoutManager.ControlCharacterAction

Parameters

layoutManager

The layout manager doing the layout.

action

The proposed control character action for the character at the given index. Possible values are enumerated by NSLayoutManager.ControlCharacterAction.

charIndex

The index of the control character for which the action is proposed.

Return Value

The control character action for the control character at the given index.

See Also

Invalidating Glyphs and Layout