Contents

init(parent:textList:contents:markerAttributes:children:)

Creates a text list element with the parent, list elements, nesting level, and marker attributes you provide.

Declaration

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

Parameters

  • parent:

    The parent NSTextListElement of this element, if any.

  • textList:

    The Nstextlist to add elements to.

  • contents:

    An Nsattributedstring that contains the contents of the text list element.

  • markerAttributes:

    A dictionary of Key keys and IDs that describe the marker attributes.

  • children:

    An array of Nstextlistelement elements.

See Also

Create a text list element