One Logo Pool Ball
UIKit · IOS API REFERENCE

NSTextListElement

class · iOS 16.0+ · SDK 27.1

class NSTextListElement

Members (9)

init · iOS 16.0+

init

TypeScript
static initChildrenTextListNestingLevel(children: Array<NSTextListElement>, textList: NSTextList, nestingLevel: number): (NSTextListElement) | null
Swift declaration
convenience init?(children: [NSTextListElement], textList: NSTextList, nestingLevel: Int)
init · iOS 16.0+

init

TypeScript
static initContentsMarkerAttributesTextListChildren(contents: _Foundation_NSAttributedString, markerAttributes: (NativeMap<_Foundation_NSAttributedString_Key, unknown>) | null, textList: NSTextList, children?: (Array<NSTextListElement>) | null): NSTextListElement
Swift declaration
convenience init(contents: NSAttributedString, markerAttributes: [NSAttributedString.Key : Any]? = nil, textList: NSTextList, children: [NSTextListElement]?)
init · iOS 16.0+

init

TypeScript
static initParentTextListContentsMarkerAttributesChildren(parent: (NSTextListElement) | null, textList: NSTextList, contents?: (_Foundation_NSAttributedString) | null, markerAttributes?: (NativeMap<_Foundation_NSAttributedString_Key, unknown>) | null, children?: (Array<NSTextListElement>) | null): NSTextListElement
Swift declaration
init(parent: NSTextListElement?, textList: NSTextList, contents: NSAttributedString?, markerAttributes: [NSAttributedString.Key : Any]? = nil, children: [NSTextListElement]?)
get · iOS 16.0+

attributedString

TypeScript
get attributedString(): _Foundation_NSAttributedString
Swift declaration
var attributedString: NSAttributedString { get }
get · iOS 16.0+

childElements

TypeScript
get childElements(): Array<NSTextListElement>
Swift declaration
var childElements: [NSTextListElement] { get }
get · iOS 16.0+

contents

TypeScript
get contents(): (_Foundation_NSAttributedString) | null
Swift declaration
var contents: NSAttributedString? { get }
get · iOS 16.0+

markerAttributes

TypeScript
get markerAttributes(): (NativeMap<_Foundation_NSAttributedString_Key, unknown>) | null
Swift declaration
var markerAttributes: [NSAttributedString.Key : Any]? { get }
get · iOS 16.0+

parent

TypeScript
get parent(): (NSTextListElement) | null
Swift declaration
weak var parent: NSTextListElement? { get }
get · iOS 16.0+

textList

TypeScript
get textList(): NSTextList
Swift declaration
var textList: NSTextList { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NSTextListElement.init()

inherited init: cannot prove legal (class declares 6 custom initializers)

All UIKit types →