menu
AccessibilityTextStyleRun
import { AccessibilityTextStyleRun } from "destack:accessibility/binding";
Attributed text run.
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: AccessibilityTextRangeCovered text range in UTF-16 code units.
languageTag: stringBCP 47 language tag.
fontFamily: stringFont family name.
fontSizePoints: float64Font size in typographic points.
foregroundColorRgba: uint32Foreground color encoded as
0xRRGGBBAA.backgroundColorRgba: uint32Background color encoded as
0xRRGGBBAA.isBold: booleanWhether this run is bold.
isItalic: booleanWhether this run is italic.
isUnderlined: booleanWhether this run is underlined.
isStruckThrough: booleanWhether this run is struck through.
isSuperscript: booleanWhether this run is superscript.
isSubscript: booleanWhether this run is subscript.
isMisspelled: booleanWhether this run carries one spelling error annotation.
isGrammarError: booleanWhether this run carries one grammar error annotation.
linkUrl: stringCanonical URL for link runs.