TextBlock : FrameworkElement

Implemented for: all platforms

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

Implemented properties

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

Implemented methods

Method Supported on
bool Focus(FocusState) all platforms

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
bool IsTextSelectionEnabled Xamarin, Skia
string SelectedText all platforms
TextPointer SelectionEnd all platforms
TextPointer SelectionStart all platforms
double BaselineOffset all platforms
TextPointer ContentEnd all platforms
TextPointer ContentStart all platforms
TextReadingOrder TextReadingOrder all platforms
TextLineBounds TextLineBounds all platforms
SolidColorBrush SelectionHighlightColor all platforms
OpticalMarginAlignment OpticalMarginAlignment all platforms
bool IsColorFontEnabled all platforms
bool IsTextScaleFactorEnabled all platforms
bool IsTextTrimmed all platforms
IList TextHighlighters all platforms
FlyoutBase SelectionFlyout all platforms
DependencyProperty CharacterSpacingProperty all platforms
DependencyProperty FontStretchProperty all platforms
DependencyProperty IsTextSelectionEnabledProperty Xamarin, Skia
DependencyProperty PaddingProperty all platforms
DependencyProperty SelectedTextProperty all platforms
DependencyProperty IsColorFontEnabledProperty all platforms
DependencyProperty OpticalMarginAlignmentProperty all platforms
DependencyProperty SelectionHighlightColorProperty all platforms
DependencyProperty TextLineBoundsProperty all platforms
DependencyProperty TextReadingOrderProperty all platforms
DependencyProperty IsTextScaleFactorEnabledProperty all platforms
DependencyProperty TextDecorationsProperty all platforms
DependencyProperty IsTextTrimmedProperty all platforms
DependencyProperty SelectionFlyoutProperty all platforms

Not implemented methods

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

Not implemented events

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

Last updated Wednesday, October 20, 2021 12:49 PM.