Instance Method

scrollRangeToVisible(_:)

Scrolls the receiver until the text in the specified range is visible.

Declaration

func scrollRangeToVisible(_ range: NSRange)

Parameters

range

The range of text to scroll into view.

See Also

Working with the Selection

var selectedRange: NSRange

The current selection range of the receiver.

var clearsOnInsertion: Bool

A Boolean value indicating whether inserting text replaces the previous contents.

var isSelectable: Bool

A Boolean value indicating whether the receiver is selectable.