TextBlock Class

Definition

public ref class TextBlock sealed : FrameworkElement
/// [Microsoft.UI.Xaml.Markup.ContentProperty(Name="Inlines")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TextBlock final : FrameworkElement
[Microsoft.UI.Xaml.Markup.ContentProperty(Name="Inlines")]
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TextBlock : FrameworkElement
Public NotInheritable Class TextBlock
Inherits FrameworkElement
Inheritance
Object Platform::Object IInspectable DependencyObject UIElement FrameworkElement TextBlock
Attributes

Constructors

Name Description
TextBlock()

Properties

Name Description
AccessKey (Inherited from UIElement)
AccessKeyScopeOwner (Inherited from UIElement)
ActualHeight (Inherited from FrameworkElement)
ActualOffset (Inherited from UIElement)
ActualSize (Inherited from UIElement)
ActualTheme (Inherited from FrameworkElement)
ActualWidth (Inherited from FrameworkElement)
AllowDrop (Inherited from UIElement)
AllowFocusOnInteraction (Inherited from FrameworkElement)
AllowFocusWhenDisabled (Inherited from FrameworkElement)
BaselineOffset
BaseUri (Inherited from FrameworkElement)
CacheMode (Inherited from UIElement)
CanBeScrollAnchor (Inherited from UIElement)
CanDrag (Inherited from UIElement)
CenterPoint (Inherited from UIElement)
CharacterSpacing
CharacterSpacingProperty
Clip (Inherited from UIElement)
CompositeMode (Inherited from UIElement)
ContentEnd
ContentStart
ContextFlyout (Inherited from UIElement)
DataContext (Inherited from FrameworkElement)
DesiredSize (Inherited from UIElement)
Dispatcher (Inherited from DependencyObject)
DispatcherQueue (Inherited from DependencyObject)
ExitDisplayModeOnAccessKeyInvoked (Inherited from UIElement)
FlowDirection (Inherited from FrameworkElement)
FocusState (Inherited from UIElement)
FocusVisualMargin (Inherited from FrameworkElement)
FocusVisualPrimaryBrush (Inherited from FrameworkElement)
FocusVisualPrimaryThickness (Inherited from FrameworkElement)
FocusVisualSecondaryBrush (Inherited from FrameworkElement)
FocusVisualSecondaryThickness (Inherited from FrameworkElement)
FontFamily
FontFamilyProperty
FontSize
FontSizeProperty
FontStretch
FontStretchProperty
FontStyle
FontStyleProperty
FontWeight
FontWeightProperty
Foreground
ForegroundProperty
Height (Inherited from FrameworkElement)
HighContrastAdjustment (Inherited from UIElement)
HorizontalAlignment (Inherited from FrameworkElement)
HorizontalTextAlignment
HorizontalTextAlignmentProperty
Inlines
IsAccessKeyScope (Inherited from UIElement)
IsColorFontEnabled
IsColorFontEnabledProperty
IsDoubleTapEnabled (Inherited from UIElement)
IsHitTestVisible (Inherited from UIElement)
IsHoldingEnabled (Inherited from UIElement)
IsLoaded (Inherited from FrameworkElement)
IsRightTapEnabled (Inherited from UIElement)
IsTabStop (Inherited from UIElement)
IsTapEnabled (Inherited from UIElement)
IsTextScaleFactorEnabled
IsTextScaleFactorEnabledProperty
IsTextSelectionEnabled
IsTextSelectionEnabledProperty
IsTextTrimmed
IsTextTrimmedProperty
KeyboardAcceleratorPlacementMode (Inherited from UIElement)
KeyboardAcceleratorPlacementTarget (Inherited from UIElement)
KeyboardAccelerators (Inherited from UIElement)
KeyTipHorizontalOffset (Inherited from UIElement)
KeyTipPlacementMode (Inherited from UIElement)
KeyTipTarget (Inherited from UIElement)
KeyTipVerticalOffset (Inherited from UIElement)
Language (Inherited from FrameworkElement)
Lights (Inherited from UIElement)
LineHeight
LineHeightProperty
LineStackingStrategy
LineStackingStrategyProperty
ManipulationMode (Inherited from UIElement)
Margin (Inherited from FrameworkElement)
MaxHeight (Inherited from FrameworkElement)
MaxLines
MaxLinesProperty
MaxWidth (Inherited from FrameworkElement)
MinHeight (Inherited from FrameworkElement)
MinWidth (Inherited from FrameworkElement)
Name (Inherited from FrameworkElement)
Opacity (Inherited from UIElement)
OpacityTransition (Inherited from UIElement)
OpticalMarginAlignment
OpticalMarginAlignmentProperty
Padding
PaddingProperty
Parent (Inherited from FrameworkElement)
PointerCaptures (Inherited from UIElement)
Projection (Inherited from UIElement)
ProtectedCursor (Inherited from UIElement)
RasterizationScale (Inherited from UIElement)
RenderSize (Inherited from UIElement)
RenderTransform (Inherited from UIElement)
RenderTransformOrigin (Inherited from UIElement)
RequestedTheme (Inherited from FrameworkElement)
Resources (Inherited from FrameworkElement)
Rotation (Inherited from UIElement)
RotationAxis (Inherited from UIElement)
RotationTransition (Inherited from UIElement)
Scale (Inherited from UIElement)
ScaleTransition (Inherited from UIElement)
SelectedText
SelectedTextProperty
SelectionEnd
SelectionFlyout
SelectionFlyoutProperty
SelectionHighlightColor
SelectionHighlightColorProperty
SelectionStart
Shadow (Inherited from UIElement)
Style (Inherited from FrameworkElement)
TabFocusNavigation (Inherited from UIElement)
TabIndex (Inherited from UIElement)
Tag (Inherited from FrameworkElement)
Text
TextAlignment
TextAlignmentProperty
TextDecorations
TextDecorationsProperty
TextHighlighters
TextLineBounds
TextLineBoundsProperty
TextProperty
TextReadingOrder
TextReadingOrderProperty
TextTrimming
TextTrimmingProperty
TextWrapping
TextWrappingProperty
Transform3D (Inherited from UIElement)
TransformMatrix (Inherited from UIElement)
Transitions (Inherited from UIElement)
Translation (Inherited from UIElement)
TranslationTransition (Inherited from UIElement)
Triggers (Inherited from FrameworkElement)
UseLayoutRounding (Inherited from UIElement)
UseSystemFocusVisuals (Inherited from UIElement)
VerticalAlignment (Inherited from FrameworkElement)
Visibility (Inherited from UIElement)
Width (Inherited from FrameworkElement)
XamlRoot (Inherited from UIElement)
XYFocusDown (Inherited from UIElement)
XYFocusDownNavigationStrategy (Inherited from UIElement)
XYFocusKeyboardNavigation (Inherited from UIElement)
XYFocusLeft (Inherited from UIElement)
XYFocusLeftNavigationStrategy (Inherited from UIElement)
XYFocusRight (Inherited from UIElement)
XYFocusRightNavigationStrategy (Inherited from UIElement)
XYFocusUp (Inherited from UIElement)
XYFocusUpNavigationStrategy (Inherited from UIElement)

Methods

Name Description
AddHandler(RoutedEvent, Object, Boolean) (Inherited from UIElement)
Arrange(Rect) (Inherited from UIElement)
ArrangeOverride(Size) (Inherited from FrameworkElement)
CancelDirectManipulations() (Inherited from UIElement)
CapturePointer(Pointer) (Inherited from UIElement)
ClearValue(DependencyProperty) (Inherited from DependencyObject)
CopySelectionToClipboard()
FindName(String) (Inherited from FrameworkElement)
FindSubElementsForTouchTargeting(Point, Rect) (Inherited from UIElement)
Focus(FocusState) (Inherited from UIElement)
GetAlphaMask()
GetAnimationBaseValue(DependencyProperty) (Inherited from DependencyObject)
GetBindingExpression(DependencyProperty) (Inherited from FrameworkElement)
GetChildrenInTabFocusOrder() (Inherited from UIElement)
GetValue(DependencyProperty) (Inherited from DependencyObject)
GetVisualInternal() (Inherited from UIElement)
GoToElementStateCore(String, Boolean) (Inherited from FrameworkElement)
InvalidateArrange() (Inherited from UIElement)
InvalidateMeasure() (Inherited from UIElement)
InvalidateViewport() (Inherited from FrameworkElement)
Measure(Size) (Inherited from UIElement)
MeasureOverride(Size) (Inherited from FrameworkElement)
OnApplyTemplate() (Inherited from FrameworkElement)
OnBringIntoViewRequested(BringIntoViewRequestedEventArgs) (Inherited from UIElement)
OnCreateAutomationPeer() (Inherited from UIElement)
OnDisconnectVisualChildren() (Inherited from UIElement)
OnKeyboardAcceleratorInvoked(KeyboardAcceleratorInvokedEventArgs) (Inherited from UIElement)
OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs) (Inherited from UIElement)
PopulatePropertyInfo(String, AnimationPropertyInfo) (Inherited from UIElement)
PopulatePropertyInfoOverride(String, AnimationPropertyInfo) (Inherited from UIElement)
ReadLocalValue(DependencyProperty) (Inherited from DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback) (Inherited from DependencyObject)
ReleasePointerCapture(Pointer) (Inherited from UIElement)
ReleasePointerCaptures() (Inherited from UIElement)
RemoveHandler(RoutedEvent, Object) (Inherited from UIElement)
Select(TextPointer, TextPointer)
SelectAll()
SetBinding(DependencyProperty, BindingBase) (Inherited from FrameworkElement)
SetValue(DependencyProperty, Object) (Inherited from DependencyObject)
StartAnimation(ICompositionAnimationBase) (Inherited from UIElement)
StartBringIntoView() (Inherited from UIElement)
StartBringIntoView(BringIntoViewOptions) (Inherited from UIElement)
StartDragAsync(ExpPointerPoint) (Inherited from UIElement)
StartDragAsync(PointerPoint) (Inherited from UIElement)
StopAnimation(ICompositionAnimationBase) (Inherited from UIElement)
TransformToVisual(UIElement) (Inherited from UIElement)
TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs) (Inherited from UIElement)
UnregisterPropertyChangedCallback(DependencyProperty, Int64) (Inherited from DependencyObject)
UpdateLayout() (Inherited from UIElement)

Events

Name Description
AccessKeyDisplayDismissed (Inherited from UIElement)
AccessKeyDisplayRequested (Inherited from UIElement)
AccessKeyInvoked (Inherited from UIElement)
ActualThemeChanged (Inherited from FrameworkElement)
BringIntoViewRequested (Inherited from UIElement)
CharacterReceived (Inherited from UIElement)
ContextCanceled (Inherited from UIElement)
ContextMenuOpening
ContextRequested (Inherited from UIElement)
DataContextChanged (Inherited from FrameworkElement)
DoubleTapped (Inherited from UIElement)
DragEnter (Inherited from UIElement)
DragLeave (Inherited from UIElement)
DragOver (Inherited from UIElement)
DragStarting (Inherited from UIElement)
Drop (Inherited from UIElement)
DropCompleted (Inherited from UIElement)
EffectiveViewportChanged (Inherited from FrameworkElement)
GettingFocus (Inherited from UIElement)
GotFocus (Inherited from UIElement)
Holding (Inherited from UIElement)
IsTextTrimmedChanged
KeyDown (Inherited from UIElement)
KeyUp (Inherited from UIElement)
LayoutUpdated (Inherited from FrameworkElement)
Loaded (Inherited from FrameworkElement)
Loading (Inherited from FrameworkElement)
LosingFocus (Inherited from UIElement)
LostFocus (Inherited from UIElement)
ManipulationCompleted (Inherited from UIElement)
ManipulationDelta (Inherited from UIElement)
ManipulationInertiaStarting (Inherited from UIElement)
ManipulationStarted (Inherited from UIElement)
ManipulationStarting (Inherited from UIElement)
NoFocusCandidateFound (Inherited from UIElement)
PointerCanceled (Inherited from UIElement)
PointerCaptureLost (Inherited from UIElement)
PointerEntered (Inherited from UIElement)
PointerExited (Inherited from UIElement)
PointerMoved (Inherited from UIElement)
PointerPressed (Inherited from UIElement)
PointerReleased (Inherited from UIElement)
PointerWheelChanged (Inherited from UIElement)
PreviewKeyDown (Inherited from UIElement)
PreviewKeyUp (Inherited from UIElement)
ProcessKeyboardAccelerators (Inherited from UIElement)
RightTapped (Inherited from UIElement)
SelectionChanged
SizeChanged (Inherited from FrameworkElement)
Tapped (Inherited from UIElement)
Unloaded (Inherited from FrameworkElement)

Applies to