Instance Method

accessibilityString(for:)

Returns the substring for the specified range.

Required.

Declaration

func accessibilityString(for range: NSRange) -> String?

Parameters

range

A range of characters contained by this element.

Return Value

The substring specified by the given range.

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 accessibilityRange(forLine: Int) -> NSRange

Returns the range of characters in the specified line.

Required.