---
title: NSTextListElement
framework: appkit
role: symbol
role_heading: Class
path: appkit/nstextlistelement
---

# NSTextListElement

A class that represents a text list node.

## Declaration

```swift
class NSTextListElement
```

## Topics

### Create a text list element

- [init(children:textList:nestingLevel:)](appkit/nstextlistelement/init(children:textlist:nestinglevel:).md)
- [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)

### Accessing the text elements

- [textList](appkit/nstextlistelement/textlist.md)
- [parent](appkit/nstextlistelement/parent.md)
- [childElements](appkit/nstextlistelement/childelements.md)

### Accessing the text list’s attributes

- [markerAttributes](appkit/nstextlistelement/markerattributes.md)

### Accessing the formatted string data

- [attributedString](appkit/nstextlistelement/attributedstring.md)
- [contents](appkit/nstextlistelement/contents.md)

### Initializers

- [init(childElements:textList:nestingLevel:)](appkit/nstextlistelement/init(childelements:textlist:nestinglevel:).md)
- [init(contents:markerAttributes:textList:childElements:)](appkit/nstextlistelement/init(contents:markerattributes:textlist:childelements:).md)
- [init(parentElement:textList:contents:markerAttributes:childElements:)](appkit/nstextlistelement/init(parentelement:textlist:contents:markerattributes:childelements:).md)

## Relationships

### Inherits From

- [NSTextParagraph](appkit/nstextparagraph.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Content elements

- [Enriching your text in text views](uikit/enriching-your-text-in-text-views.md)
- [NSTextParagraph](appkit/nstextparagraph.md)
- [NSTextElement](appkit/nstextelement.md)
- [NSTextElementProvider](appkit/nstextelementprovider.md)
