---
title: "init(type:location:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nstexttab/init(type:location:)"
---

# init(type:location:)

Initializes a newly allocated text tab with the specified alignment and location.

## Declaration

```swift
convenience init(type: NSParagraphStyle.TextTabType, location loc: CGFloat)
```

## Discussion

Discussion The location is relative to the back margin, based on the line sweep direction of the paragraph. The value in the type parameter can be any of the values described in NSParagraphStyle.TextTabType.

## See Also

### Deprecated

- [tabStopType](appkit/nstexttab/tabstoptype.md)
