TextBlock : FrameworkElement

Implemented for: all platforms supported by Uno Platform

This document lists all properties, methods, and events of TextBlock that are currently implemented by the Uno Platform. See the WinUI and UWP documentation for detailed usage guidelines which all automatically apply to Uno Platform.

Implemented properties

Property Supported on
TextWrapping TextWrapping all platforms supported by Uno Platform
TextTrimming TextTrimming all platforms supported by Uno Platform
TextAlignment TextAlignment all platforms supported by Uno Platform
string Text all platforms supported by Uno Platform
Thickness Padding all platforms supported by Uno Platform
Brush Foreground all platforms supported by Uno Platform
FontWeight FontWeight all platforms supported by Uno Platform
FontStyle FontStyle all platforms supported by Uno Platform
double FontSize all platforms supported by Uno Platform
FontFamily FontFamily all platforms supported by Uno Platform
LineStackingStrategy LineStackingStrategy all platforms supported by Uno Platform
double LineHeight all platforms supported by Uno Platform
int CharacterSpacing all platforms supported by Uno Platform
bool IsTextSelectionEnabled WASM
InlineCollection Inlines all platforms supported by Uno Platform
int MaxLines all platforms supported by Uno Platform
TextDecorations TextDecorations all platforms supported by Uno Platform
TextAlignment HorizontalTextAlignment all platforms supported by Uno Platform
DependencyProperty CharacterSpacingProperty all platforms supported by Uno Platform
DependencyProperty FontFamilyProperty all platforms supported by Uno Platform
DependencyProperty FontSizeProperty all platforms supported by Uno Platform
DependencyProperty FontStyleProperty all platforms supported by Uno Platform
DependencyProperty FontWeightProperty all platforms supported by Uno Platform
DependencyProperty ForegroundProperty all platforms supported by Uno Platform
DependencyProperty IsTextSelectionEnabledProperty WASM
DependencyProperty LineHeightProperty all platforms supported by Uno Platform
DependencyProperty LineStackingStrategyProperty all platforms supported by Uno Platform
DependencyProperty PaddingProperty all platforms supported by Uno Platform
DependencyProperty TextAlignmentProperty all platforms supported by Uno Platform
DependencyProperty TextProperty all platforms supported by Uno Platform
DependencyProperty TextTrimmingProperty all platforms supported by Uno Platform
DependencyProperty TextWrappingProperty all platforms supported by Uno Platform
DependencyProperty MaxLinesProperty all platforms supported by Uno Platform
DependencyProperty TextDecorationsProperty all platforms supported by Uno Platform
DependencyProperty HorizontalTextAlignmentProperty all platforms supported by Uno Platform

Implemented methods

Method Supported on
bool Focus(FocusState) all platforms supported by Uno Platform

Below are all properties, methods, and events of TextBlock that are not currently implemented in Uno.

Not implemented properties

Property Not supported on
FontStretch FontStretch all platforms supported by Uno Platform
bool IsTextSelectionEnabled Xamarin, Skia
string SelectedText all platforms supported by Uno Platform
TextPointer SelectionEnd all platforms supported by Uno Platform
TextPointer SelectionStart all platforms supported by Uno Platform
double BaselineOffset all platforms supported by Uno Platform
TextPointer ContentEnd all platforms supported by Uno Platform
TextPointer ContentStart all platforms supported by Uno Platform
TextReadingOrder TextReadingOrder all platforms supported by Uno Platform
TextLineBounds TextLineBounds all platforms supported by Uno Platform
SolidColorBrush SelectionHighlightColor all platforms supported by Uno Platform
OpticalMarginAlignment OpticalMarginAlignment all platforms supported by Uno Platform
bool IsColorFontEnabled all platforms supported by Uno Platform
bool IsTextScaleFactorEnabled all platforms supported by Uno Platform
bool IsTextTrimmed all platforms supported by Uno Platform
IList TextHighlighters all platforms supported by Uno Platform
FlyoutBase SelectionFlyout all platforms supported by Uno Platform
DependencyProperty FontStretchProperty all platforms supported by Uno Platform
DependencyProperty IsTextSelectionEnabledProperty Xamarin, Skia
DependencyProperty SelectedTextProperty all platforms supported by Uno Platform
DependencyProperty IsColorFontEnabledProperty all platforms supported by Uno Platform
DependencyProperty OpticalMarginAlignmentProperty all platforms supported by Uno Platform
DependencyProperty SelectionHighlightColorProperty all platforms supported by Uno Platform
DependencyProperty TextLineBoundsProperty all platforms supported by Uno Platform
DependencyProperty TextReadingOrderProperty all platforms supported by Uno Platform
DependencyProperty IsTextScaleFactorEnabledProperty all platforms supported by Uno Platform
DependencyProperty IsTextTrimmedProperty all platforms supported by Uno Platform
DependencyProperty SelectionFlyoutProperty all platforms supported by Uno Platform

Not implemented methods

Method Not supported on
void SelectAll() all platforms supported by Uno Platform
void Select(TextPointer, TextPointer) all platforms supported by Uno Platform
CompositionBrush GetAlphaMask() all platforms supported by Uno Platform
void CopySelectionToClipboard() all platforms supported by Uno Platform

Not implemented events

Event Not supported on
ContextMenuOpeningEventHandler ContextMenuOpening all platforms supported by Uno Platform
RoutedEventHandler SelectionChanged all platforms supported by Uno Platform
TypedEventHandler<TextBlock, IsTextTrimmedChangedEventArgs> IsTextTrimmedChanged all platforms supported by Uno Platform

Last updated Tuesday, May 24, 2022 4:29 PM.