<!--
{
  "availability" : [
    "macOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextListElement/init(children:textList:nestingLevel:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextListElement(cm)textListElementWithChildElements:textList:nestingLevel:"
  },
  "title" : "init(children:textList:nestingLevel:)"
}
-->

# init(children:textList:nestingLevel:)

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

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

## Parameters

`children`

An array of [`NSTextListElement`](/documentation/AppKit/NSTextListElement) elements.

`textList`

The [`NSTextList`](/documentation/AppKit/NSTextList) to add elements to.

`nestingLevel`

An integer value that describes the level of nesting of these elements.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)