Instance Method

accessibilityRange(forLine:)

Returns the range of characters in the specified line.

Required.

Declaration

func accessibilityRange(forLine lineNumber: Int) -> NSRange

Parameters

line

The line number to be examined.

Return Value

The range of characters for the specified line number. If the line ends with a newline character, including the newline is preferred.

See Also

Text Navigation Methods

func accessibilityFrame(for: NSRange) -> NSRect

Returns the rectangle enclosing the specified range of characters.

Required.

func accessibilityLine(for: Int) -> Int

Returns the line number for the line holding the specified character index.

Required.

func accessibilityString(for: NSRange) -> String?

Returns the substring for the specified range.

Required.