Contents

range(of:at:)

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

Declaration

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

Parameters

  • list:

    The text list.

  • location:

    The location in the text list.

Return Value

The range of the given text list containing the location.

See Also

Calculating ranges for common elements