Instance Method

accessibilityRTF(for:)

Returns the Rich Text Format (RTF) data that describes the specified range of characters.

Required.

Declaration

func accessibilityRTF(for range: NSRange) -> Data?

Parameters

range

The range of characters.

Return Value

A data object containing an RTF representation of the specified characters.

See Also

Configuring Text Elements

func accessibilityString(for: NSRange) -> String?

Returns the substring for the specified range.

Required.

func accessibilityAttributedString(for: NSRange) -> NSAttributedString?

Returns the attributed substring for the specified range of characters.

Required.

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

Returns the range of characters for the glyph that includes the specified character.

Required.

func accessibilityStyleRange(for: Int) -> NSRange

Returns a range of characters that all have the same style as the specified character.

Required.

func accessibilityRange(forLine: Int) -> NSRange

Returns the range of characters in the specified line.

Required.

func accessibilityRange(for: NSPoint) -> NSRange

Returns the range of characters for the glyph at the specified point.

Required.