Implemented for: WASM, Skia, Mobile
This document lists all properties, methods, and events of TextBlock
that are currently implemented by the Uno Platform. See the WinUI documentation for detailed usage guidelines which all automatically apply to Uno Platform.
To better understand how TextBlock
works, you can use the Uno Gallery or run your own tests on the Uno Playground.
Implemented properties
Property |
Supported on |
double LineHeight |
WASM, Skia, Mobile |
TextAlignment HorizontalTextAlignment |
WASM, Skia, Mobile |
Brush Foreground |
WASM, Skia, Mobile |
FontWeight FontWeight |
WASM, Skia, Mobile |
FontStyle FontStyle |
WASM, Skia, Mobile |
double FontSize |
WASM, Skia, Mobile |
FontFamily FontFamily |
WASM, Skia, Mobile |
bool IsTextSelectionEnabled |
WASM, Skia |
int CharacterSpacing |
WASM, Skia, Mobile |
TextWrapping TextWrapping |
WASM, Skia, Mobile |
LineStackingStrategy LineStackingStrategy |
WASM, Skia, Mobile |
TextTrimming TextTrimming |
WASM, Skia, Mobile |
TextDecorations TextDecorations |
WASM, Skia, Mobile |
TextAlignment TextAlignment |
WASM, Skia, Mobile |
string Text |
WASM, Skia, Mobile |
SolidColorBrush SelectionHighlightColor |
Skia |
Thickness Padding |
WASM, Skia, Mobile |
int MaxLines |
WASM, Skia, Mobile |
InlineCollection Inlines |
WASM, Skia, Mobile |
bool IsTextTrimmed |
WASM, Skia, Mobile |
string SelectedText |
Skia |
DependencyProperty CharacterSpacingProperty |
WASM, Skia, Mobile |
DependencyProperty FontFamilyProperty |
WASM, Skia, Mobile |
DependencyProperty FontSizeProperty |
WASM, Skia, Mobile |
DependencyProperty FontStretchProperty |
WASM, Skia, Mobile |
DependencyProperty FontStyleProperty |
WASM, Skia, Mobile |
DependencyProperty FontWeightProperty |
WASM, Skia, Mobile |
DependencyProperty ForegroundProperty |
WASM, Skia, Mobile |
DependencyProperty HorizontalTextAlignmentProperty |
WASM, Skia, Mobile |
DependencyProperty IsTextSelectionEnabledProperty |
WASM, Skia |
DependencyProperty IsTextTrimmedProperty |
WASM, Skia, Mobile |
DependencyProperty LineHeightProperty |
WASM, Skia, Mobile |
DependencyProperty LineStackingStrategyProperty |
WASM, Skia, Mobile |
DependencyProperty MaxLinesProperty |
WASM, Skia, Mobile |
DependencyProperty PaddingProperty |
WASM, Skia, Mobile |
DependencyProperty SelectedTextProperty |
Skia |
DependencyProperty SelectionHighlightColorProperty |
Skia |
DependencyProperty TextAlignmentProperty |
WASM, Skia, Mobile |
DependencyProperty TextDecorationsProperty |
WASM, Skia, Mobile |
DependencyProperty TextProperty |
WASM, Skia, Mobile |
DependencyProperty TextTrimmingProperty |
WASM, Skia, Mobile |
DependencyProperty TextWrappingProperty |
WASM, Skia, Mobile |
Implemented methods
Implemented events
Below are all properties, methods, and events of TextBlock
that are not currently implemented in Uno.
Not implemented properties
Property |
Not supported on |
bool IsColorFontEnabled |
all platforms supported by Uno Platform |
double LineHeight |
MacOS |
TextAlignment HorizontalTextAlignment |
MacOS |
Brush Foreground |
MacOS |
FontWeight FontWeight |
MacOS |
FontStyle FontStyle |
MacOS |
FontStretch FontStretch |
all platforms supported by Uno Platform |
double FontSize |
MacOS |
FontFamily FontFamily |
MacOS |
bool IsTextSelectionEnabled |
Android, iOS, macOS, tvOS |
bool IsTextScaleFactorEnabled |
all platforms supported by Uno Platform |
int CharacterSpacing |
MacOS |
TextWrapping TextWrapping |
MacOS |
LineStackingStrategy LineStackingStrategy |
MacOS |
TextTrimming TextTrimming |
MacOS |
TextReadingOrder TextReadingOrder |
all platforms supported by Uno Platform |
TextLineBounds TextLineBounds |
all platforms supported by Uno Platform |
TextDecorations TextDecorations |
MacOS |
TextAlignment TextAlignment |
MacOS |
string Text |
MacOS |
SolidColorBrush SelectionHighlightColor |
WASM, Xamarin |
FlyoutBase SelectionFlyout |
all platforms supported by Uno Platform |
Thickness Padding |
MacOS |
OpticalMarginAlignment OpticalMarginAlignment |
all platforms supported by Uno Platform |
int MaxLines |
MacOS |
TextPointer ContentEnd |
all platforms supported by Uno Platform |
TextPointer ContentStart |
all platforms supported by Uno Platform |
InlineCollection Inlines |
MacOS |
bool IsTextTrimmed |
MacOS |
string SelectedText |
WASM, Xamarin |
TextPointer SelectionEnd |
all platforms supported by Uno Platform |
TextPointer SelectionStart |
all platforms supported by Uno Platform |
IList TextHighlighters |
all platforms supported by Uno Platform |
double BaselineOffset |
all platforms supported by Uno Platform |
DependencyProperty CharacterSpacingProperty |
MacOS |
DependencyProperty FontFamilyProperty |
MacOS |
DependencyProperty FontSizeProperty |
MacOS |
DependencyProperty FontStretchProperty |
MacOS |
DependencyProperty FontStyleProperty |
MacOS |
DependencyProperty FontWeightProperty |
MacOS |
DependencyProperty ForegroundProperty |
MacOS |
DependencyProperty HorizontalTextAlignmentProperty |
MacOS |
DependencyProperty IsColorFontEnabledProperty |
all platforms supported by Uno Platform |
DependencyProperty IsTextScaleFactorEnabledProperty |
all platforms supported by Uno Platform |
DependencyProperty IsTextSelectionEnabledProperty |
Android, iOS, macOS, tvOS |
DependencyProperty IsTextTrimmedProperty |
MacOS |
DependencyProperty LineHeightProperty |
MacOS |
DependencyProperty LineStackingStrategyProperty |
MacOS |
DependencyProperty MaxLinesProperty |
MacOS |
DependencyProperty OpticalMarginAlignmentProperty |
all platforms supported by Uno Platform |
DependencyProperty PaddingProperty |
MacOS |
DependencyProperty SelectedTextProperty |
WASM, Xamarin |
DependencyProperty SelectionFlyoutProperty |
all platforms supported by Uno Platform |
DependencyProperty SelectionHighlightColorProperty |
WASM, Xamarin |
DependencyProperty TextAlignmentProperty |
MacOS |
DependencyProperty TextDecorationsProperty |
MacOS |
DependencyProperty TextLineBoundsProperty |
all platforms supported by Uno Platform |
DependencyProperty TextProperty |
MacOS |
DependencyProperty TextReadingOrderProperty |
all platforms supported by Uno Platform |
DependencyProperty TextTrimmingProperty |
MacOS |
DependencyProperty TextWrappingProperty |
MacOS |
Not implemented methods
Not implemented events
Last updated Friday, 06 June 2025 13:45.