---
title: "init(children:textList:nestingLevel:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nstextlistelement/init(children:textlist:nestinglevel:)"
---

# init(children:textList:nestingLevel:)

Creates a text list element with the list elements and nesting level you provide.

## Declaration

```swift
convenience init?(children: [NSTextListElement], textList: NSTextList, nestingLevel: Int)
```

## Parameters

- `children`: An array of doc://com.apple.appkit/documentation/AppKit/NSTextListElement elements.
- `textList`: The doc://com.apple.appkit/documentation/AppKit/NSTextList to add elements to.
- `nestingLevel`: An integer value that describes the level of nesting of these elements.

## See Also

### Create a text list element

- [init(contents:markerAttributes:textList:children:)](appkit/nstextlistelement/init(contents:markerattributes:textlist:children:).md)
- [init(parent:textList:contents:markerAttributes:children:)](appkit/nstextlistelement/init(parent:textlist:contents:markerattributes:children:).md)
