Instance Method

range(of:at:)

Returns the range of the given text table that contains the given location

Declaration

func range(of table: NSTextTable, at location: Int) -> NSRange

Parameters

table

The text table.

location

The location.

Return Value

Returns the range of table that contains location.

See Also

Calculating Ranges

func itemNumber(in: NSTextList, at: Int) -> Int

Returns the index of the item at the given location within the list.

func range(of: NSTextBlock, at: Int) -> NSRange

Returns the range of the individual text block that contains the given location.

func range(of: NSTextList, at: Int) -> NSRange

Returns the range of the given text list that contains the given location.