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

# NSTextListElement

A class that represents a text list node.

## Declaration

```swift
class NSTextListElement
```

## Topics

### Create a text list element

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

### Accessing the text elements

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

### Accessing the text list’s attributes

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

### Accessing the formatted string data

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

### Initializers

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

## Relationships

### Inherits From

- [NSTextParagraph](uikit/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](uikit/nstextparagraph.md)
- [NSTextElement](uikit/nstextelement.md)
- [NSTextElementProvider](uikit/nstextelementprovider.md)
