Contents

range(of:at:)

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

Declaration

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

Parameters

  • block:

    The text block.

  • location:

    The location in the text block.

Return Value

The range of the text block containing the location.

See Also

Calculating ranges for common elements