---
title: "range(of:at:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsattributedstring/range(of:at:)-3fevu"
---

# range(of:at:)

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

## Declaration

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

## Parameters

- `table`: The text table.
- `location`: The location.

## Return Value

Return Value Returns the range of table that contains location.

## See Also

### Calculating ranges for common elements

- [itemNumber(in:at:)](foundation/nsattributedstring/itemnumber(in:at:).md)
- [range(of:at:)](foundation/nsattributedstring/range(of:at:)-1wrcp.md)
- [range(of:at:)](foundation/nsattributedstring/range(of:at:)-6um0x.md)
