TextElement
data class TextElement(val locator: Locator, val role: Content.TextElement.Role, val segments: List<Content.TextElement.Segment>, val attributes: List<Content.Attribute<*>> = emptyList()) : Content.TextualElement
A text element.
Parameters
role
Purpose of this element in the broader context of the document.
segments
Ranged portions of text with associated attributes.
Constructors
Link copied to clipboard
constructor(locator: Locator, role: Content.TextElement.Role, segments: List<Content.TextElement.Segment>, attributes: List<Content.Attribute<*>> = emptyList())
Types
Link copied to clipboard
data class Segment(val locator: Locator, val text: String, val attributes: List<Content.Attribute<*>>) : Content.AttributesHolder
Ranged portion of text with associated attributes.