Instance Property

markedTextRange

The range of text that is currently marked in a document.

Required.

Declaration

@property(nonatomic, readonly) UITextRange *markedTextRange;

Discussion

If there is no marked text, the value of the property is nil. Marked text is provisionally inserted text that requires user confirmation; it occurs in multistage text input. The current selection, which can be a caret or an extended range, always occurs within the marked text.

See Also

Working with Marked and Selected Text

selectedTextRange

The range of selected text in a document.

Required.

markedTextStyle

A dictionary of attributes that describes how marked text should be drawn.

Required.

- setMarkedText:selectedRange:

Insert the provided text and marks it to indicate that it is part of an active input session.

Required.

- unmarkText

Unmark the currently marked text.

Required.

selectionAffinity

The desired location for the insertion point.