TextBlock Classe

Définition

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
Héritage
Object Platform::Object IInspectable DependencyObject UIElement FrameworkElement TextBlock
Attributs

Constructeurs

Nom Description
TextBlock()

Propriétés

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

Méthodes

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

Événements

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

S’applique à