menu

AccessibilityTextStyleRun

import { AccessibilityTextStyleRun } from "destack:accessibility/binding";

Attributed text run.

language/library/src/accessibility/binding/text.ds:111:142
1export struct AccessibilityTextStyleRun {2    range: AccessibilityTextRange;3    languageTag: string;4    fontFamily: string;5    fontSizePoints: float64;6    foregroundColorRgba: uint32;7    backgroundColorRgba: uint32;8    isBold: boolean;9    isItalic: boolean;10    isUnderlined: boolean;11    isStruckThrough: boolean;12    isSuperscript: boolean;13    isSubscript: boolean;14    isMisspelled: boolean;15    isGrammarError: boolean;16    linkUrl: string;17}

Members

range: AccessibilityTextRange

Covered text range in UTF-16 code units.

languageTag: string

BCP 47 language tag.

fontFamily: string

Font family name.

fontSizePoints: float64

Font size in typographic points.

foregroundColorRgba: uint32

Foreground color encoded as 0xRRGGBBAA.

backgroundColorRgba: uint32

Background color encoded as 0xRRGGBBAA.

isBold: boolean

Whether this run is bold.

isItalic: boolean

Whether this run is italic.

isUnderlined: boolean

Whether this run is underlined.

isStruckThrough: boolean

Whether this run is struck through.

isSuperscript: boolean

Whether this run is superscript.

isSubscript: boolean

Whether this run is subscript.

isMisspelled: boolean

Whether this run carries one spelling error annotation.

isGrammarError: boolean

Whether this run carries one grammar error annotation.

linkUrl: string

Canonical URL for link runs.