TextBlock 类

定义

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
继承
Object Platform::Object IInspectable DependencyObject UIElement FrameworkElement TextBlock
属性

构造函数

名称 说明
TextBlock()

属性

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

方法

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

活动

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

适用于