---
title: "init(textContentManager:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nstextelement/init(textcontentmanager:)"
---

# init(textContentManager:)

Creates a new text element with the content manager you provide.

## Declaration

```swift
init(textContentManager: NSTextContentManager?)
```

## Parameters

- `textContentManager`: The doc://com.apple.appkit/documentation/AppKit/NSTextContentManager to apply to this text element.
