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

# init(contents:markerAttributes:textList:childElements:)

```
convenience init(contents: NSAttributedString, markerAttributes: [NSAttributedString.Key : Any]? = nil, textList: NSTextList, childElements children: [NSTextListElement]?)
```

---

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)