---
title: "CTTextTabGetLocation(_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/cttexttabgetlocation(_:)"
---

# CTTextTabGetLocation(_:)

Returns the tab’s ruler location.

## Declaration

```swift
func CTTextTabGetLocation(_ tab: CTTextTab) -> Double
```

## Parameters

- `tab`: The tab whose location is obtained.

## Return Value

Return Value The tab’s ruler location relative to the back margin.

## See Also

### Getting Text Tab Data

- [CTTextTabGetAlignment(_:)](coretext/cttexttabgetalignment(_:).md)
- [CTTextTabGetOptions(_:)](coretext/cttexttabgetoptions(_:).md)
