TextBox Класс

Определение

/// [Microsoft.UI.Xaml.Controls.InputProperty(Name="Text")]
/// [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 TextBox : Control
[Microsoft.UI.Xaml.Controls.InputProperty(Name="Text")]
[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 class TextBox : Control
Public Class TextBox
Inherits Control
Наследование
Атрибуты

Конструкторы

Имя Описание
TextBox()

Свойства

Имя Описание
AcceptsReturn
AcceptsReturnProperty
AccessKey (Унаследовано от UIElement)
AccessKeyScopeOwner (Унаследовано от UIElement)
ActualHeight (Унаследовано от FrameworkElement)
ActualOffset (Унаследовано от UIElement)
ActualSize (Унаследовано от UIElement)
ActualTheme (Унаследовано от FrameworkElement)
ActualWidth (Унаследовано от FrameworkElement)
AllowDrop (Унаследовано от UIElement)
AllowFocusOnInteraction (Унаследовано от FrameworkElement)
AllowFocusWhenDisabled (Унаследовано от FrameworkElement)
Background (Унаследовано от Control)
BackgroundSizing (Унаследовано от Control)
BaseUri (Унаследовано от FrameworkElement)
BorderBrush (Унаследовано от Control)
BorderThickness (Унаследовано от Control)
CacheMode (Унаследовано от UIElement)
CanBeScrollAnchor (Унаследовано от UIElement)
CanDrag (Унаследовано от UIElement)
CanPasteClipboardContent
CanPasteClipboardContentProperty
CanRedo
CanRedoProperty
CanUndo
CanUndoProperty
CenterPoint (Унаследовано от UIElement)
CharacterCasing
CharacterCasingProperty
CharacterSpacing (Унаследовано от Control)
Clip (Унаследовано от UIElement)
CompositeMode (Унаследовано от UIElement)
ContextFlyout (Унаследовано от UIElement)
CornerRadius (Унаследовано от Control)
DataContext (Унаследовано от FrameworkElement)
DefaultStyleKey (Унаследовано от Control)
DefaultStyleResourceUri (Унаследовано от Control)
Description
DescriptionProperty
DesiredCandidateWindowAlignment
DesiredCandidateWindowAlignmentProperty
DesiredSize (Унаследовано от UIElement)
Dispatcher (Унаследовано от DependencyObject)
DispatcherQueue (Унаследовано от DependencyObject)
ElementSoundMode (Унаследовано от Control)
ExitDisplayModeOnAccessKeyInvoked (Унаследовано от UIElement)
FlowDirection (Унаследовано от FrameworkElement)
FocusState (Унаследовано от UIElement)
FocusVisualMargin (Унаследовано от FrameworkElement)
FocusVisualPrimaryBrush (Унаследовано от FrameworkElement)
FocusVisualPrimaryThickness (Унаследовано от FrameworkElement)
FocusVisualSecondaryBrush (Унаследовано от FrameworkElement)
FocusVisualSecondaryThickness (Унаследовано от FrameworkElement)
FontFamily (Унаследовано от Control)
FontSize (Унаследовано от Control)
FontStretch (Унаследовано от Control)
FontStyle (Унаследовано от Control)
FontWeight (Унаследовано от Control)
Foreground (Унаследовано от Control)
Header
HeaderProperty
HeaderTemplate
HeaderTemplateProperty
Height (Унаследовано от FrameworkElement)
HighContrastAdjustment (Унаследовано от UIElement)
HorizontalAlignment (Унаследовано от FrameworkElement)
HorizontalContentAlignment (Унаследовано от Control)
HorizontalTextAlignment
HorizontalTextAlignmentProperty
InputScope
InputScopeProperty
IsAccessKeyScope (Унаследовано от UIElement)
IsColorFontEnabled
IsColorFontEnabledProperty
IsDoubleTapEnabled (Унаследовано от UIElement)
IsEnabled (Унаследовано от Control)
IsFocusEngaged (Унаследовано от Control)
IsFocusEngagementEnabled (Унаследовано от Control)
IsHitTestVisible (Унаследовано от UIElement)
IsHoldingEnabled (Унаследовано от UIElement)
IsLoaded (Унаследовано от FrameworkElement)
IsReadOnly
IsReadOnlyProperty
IsRightTapEnabled (Унаследовано от UIElement)
IsSpellCheckEnabled
IsSpellCheckEnabledProperty
IsTabStop (Унаследовано от UIElement)
IsTapEnabled (Унаследовано от UIElement)
IsTextPredictionEnabled
IsTextPredictionEnabledProperty
IsTextScaleFactorEnabled (Унаследовано от Control)
KeyboardAcceleratorPlacementMode (Унаследовано от UIElement)
KeyboardAcceleratorPlacementTarget (Унаследовано от UIElement)
KeyboardAccelerators (Унаследовано от UIElement)
KeyTipHorizontalOffset (Унаследовано от UIElement)
KeyTipPlacementMode (Унаследовано от UIElement)
KeyTipTarget (Унаследовано от UIElement)
KeyTipVerticalOffset (Унаследовано от UIElement)
Language (Унаследовано от FrameworkElement)
Lights (Унаследовано от UIElement)
ManipulationMode (Унаследовано от UIElement)
Margin (Унаследовано от FrameworkElement)
MaxHeight (Унаследовано от FrameworkElement)
MaxLength
MaxLengthProperty
MaxWidth (Унаследовано от FrameworkElement)
MinHeight (Унаследовано от FrameworkElement)
MinWidth (Унаследовано от FrameworkElement)
Name (Унаследовано от FrameworkElement)
Opacity (Унаследовано от UIElement)
OpacityTransition (Унаследовано от UIElement)
Padding (Унаследовано от Control)
Parent (Унаследовано от FrameworkElement)
PlaceholderForeground
PlaceholderForegroundProperty
PlaceholderText
PlaceholderTextProperty
PointerCaptures (Унаследовано от UIElement)
PreventKeyboardDisplayOnProgrammaticFocus
PreventKeyboardDisplayOnProgrammaticFocusProperty
Projection (Унаследовано от UIElement)
ProofingMenuFlyout
ProofingMenuFlyoutProperty
ProtectedCursor (Унаследовано от UIElement)
RasterizationScale (Унаследовано от UIElement)
RenderSize (Унаследовано от UIElement)
RenderTransform (Унаследовано от UIElement)
RenderTransformOrigin (Унаследовано от UIElement)
RequestedTheme (Унаследовано от FrameworkElement)
RequiresPointer (Унаследовано от Control)
Resources (Унаследовано от FrameworkElement)
Rotation (Унаследовано от UIElement)
RotationAxis (Унаследовано от UIElement)
RotationTransition (Унаследовано от UIElement)
Scale (Унаследовано от UIElement)
ScaleTransition (Унаследовано от UIElement)
SelectedText
SelectionFlyout
SelectionFlyoutProperty
SelectionHighlightColor
SelectionHighlightColorProperty
SelectionHighlightColorWhenNotFocused
SelectionHighlightColorWhenNotFocusedProperty
SelectionLength
SelectionStart
Shadow (Унаследовано от UIElement)
Style (Унаследовано от FrameworkElement)
TabFocusNavigation (Унаследовано от UIElement)
TabIndex (Унаследовано от UIElement)
TabNavigation (Унаследовано от Control)
Tag (Унаследовано от FrameworkElement)
Template (Унаследовано от Control)
Text
TextAlignment
TextAlignmentProperty
TextProperty
TextReadingOrder
TextReadingOrderProperty
TextWrapping
TextWrappingProperty
Transform3D (Унаследовано от UIElement)
TransformMatrix (Унаследовано от UIElement)
Transitions (Унаследовано от UIElement)
Translation (Унаследовано от UIElement)
TranslationTransition (Унаследовано от UIElement)
Triggers (Унаследовано от FrameworkElement)
UseLayoutRounding (Унаследовано от UIElement)
UseSystemFocusVisuals (Унаследовано от UIElement)
VerticalAlignment (Унаследовано от FrameworkElement)
VerticalContentAlignment (Унаследовано от Control)
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)
ApplyTemplate() (Унаследовано от Control)
Arrange(Rect) (Унаследовано от UIElement)
ArrangeOverride(Size) (Унаследовано от FrameworkElement)
CancelDirectManipulations() (Унаследовано от UIElement)
CapturePointer(Pointer) (Унаследовано от UIElement)
ClearUndoRedoHistory()
ClearValue(DependencyProperty) (Унаследовано от DependencyObject)
CopySelectionToClipboard()
CutSelectionToClipboard()
FindName(String) (Унаследовано от FrameworkElement)
FindSubElementsForTouchTargeting(Point, Rect) (Унаследовано от UIElement)
Focus(FocusState) (Унаследовано от UIElement)
GetAnimationBaseValue(DependencyProperty) (Унаследовано от DependencyObject)
GetBindingExpression(DependencyProperty) (Унаследовано от FrameworkElement)
GetChildrenInTabFocusOrder() (Унаследовано от UIElement)
GetLinguisticAlternativesAsync()
GetRectFromCharacterIndex(Int32, Boolean)
GetTemplateChild(String) (Унаследовано от Control)
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)
OnCharacterReceived(CharacterReceivedRoutedEventArgs) (Унаследовано от Control)
OnCreateAutomationPeer() (Унаследовано от UIElement)
OnDisconnectVisualChildren() (Унаследовано от UIElement)
OnDoubleTapped(DoubleTappedRoutedEventArgs) (Унаследовано от Control)
OnDragEnter(DragEventArgs) (Унаследовано от Control)
OnDragLeave(DragEventArgs) (Унаследовано от Control)
OnDragOver(DragEventArgs) (Унаследовано от Control)
OnDrop(DragEventArgs) (Унаследовано от Control)
OnGotFocus(RoutedEventArgs) (Унаследовано от Control)
OnHolding(HoldingRoutedEventArgs) (Унаследовано от Control)
OnKeyboardAcceleratorInvoked(KeyboardAcceleratorInvokedEventArgs) (Унаследовано от UIElement)
OnKeyDown(KeyRoutedEventArgs) (Унаследовано от Control)
OnKeyUp(KeyRoutedEventArgs) (Унаследовано от Control)
OnLostFocus(RoutedEventArgs) (Унаследовано от Control)
OnManipulationCompleted(ManipulationCompletedRoutedEventArgs) (Унаследовано от Control)
OnManipulationDelta(ManipulationDeltaRoutedEventArgs) (Унаследовано от Control)
OnManipulationInertiaStarting(ManipulationInertiaStartingRoutedEventArgs) (Унаследовано от Control)
OnManipulationStarted(ManipulationStartedRoutedEventArgs) (Унаследовано от Control)
OnManipulationStarting(ManipulationStartingRoutedEventArgs) (Унаследовано от Control)
OnPointerCanceled(PointerRoutedEventArgs) (Унаследовано от Control)
OnPointerCaptureLost(PointerRoutedEventArgs) (Унаследовано от Control)
OnPointerEntered(PointerRoutedEventArgs) (Унаследовано от Control)
OnPointerExited(PointerRoutedEventArgs) (Унаследовано от Control)
OnPointerMoved(PointerRoutedEventArgs) (Унаследовано от Control)
OnPointerPressed(PointerRoutedEventArgs) (Унаследовано от Control)
OnPointerReleased(PointerRoutedEventArgs) (Унаследовано от Control)
OnPointerWheelChanged(PointerRoutedEventArgs) (Унаследовано от Control)
OnPreviewKeyDown(KeyRoutedEventArgs) (Унаследовано от Control)
OnPreviewKeyUp(KeyRoutedEventArgs) (Унаследовано от Control)
OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs) (Унаследовано от UIElement)
OnRightTapped(RightTappedRoutedEventArgs) (Унаследовано от Control)
OnTapped(TappedRoutedEventArgs) (Унаследовано от Control)
PasteFromClipboard()
PopulatePropertyInfo(String, AnimationPropertyInfo) (Унаследовано от UIElement)
PopulatePropertyInfoOverride(String, AnimationPropertyInfo) (Унаследовано от UIElement)
ReadLocalValue(DependencyProperty) (Унаследовано от DependencyObject)
Redo()
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback) (Унаследовано от DependencyObject)
ReleasePointerCapture(Pointer) (Унаследовано от UIElement)
ReleasePointerCaptures() (Унаследовано от UIElement)
RemoveFocusEngagement() (Унаследовано от Control)
RemoveHandler(RoutedEvent, Object) (Унаследовано от UIElement)
Select(Int32, Int32)
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)
Undo()
UnregisterPropertyChangedCallback(DependencyProperty, Int64) (Унаследовано от DependencyObject)
UpdateLayout() (Унаследовано от UIElement)

События

Имя Описание
AccessKeyDisplayDismissed (Унаследовано от UIElement)
AccessKeyDisplayRequested (Унаследовано от UIElement)
AccessKeyInvoked (Унаследовано от UIElement)
ActualThemeChanged (Унаследовано от FrameworkElement)
BeforeTextChanging
BringIntoViewRequested (Унаследовано от UIElement)
CandidateWindowBoundsChanged
CharacterReceived (Унаследовано от UIElement)
ContextCanceled (Унаследовано от UIElement)
ContextMenuOpening
ContextRequested (Унаследовано от UIElement)
CopyingToClipboard
CuttingToClipboard
DataContextChanged (Унаследовано от FrameworkElement)
DoubleTapped (Унаследовано от UIElement)
DragEnter (Унаследовано от UIElement)
DragLeave (Унаследовано от UIElement)
DragOver (Унаследовано от UIElement)
DragStarting (Унаследовано от UIElement)
Drop (Унаследовано от UIElement)
DropCompleted (Унаследовано от UIElement)
EffectiveViewportChanged (Унаследовано от FrameworkElement)
FocusDisengaged (Унаследовано от Control)
FocusEngaged (Унаследовано от Control)
GettingFocus (Унаследовано от UIElement)
GotFocus (Унаследовано от UIElement)
Holding (Унаследовано от UIElement)
IsEnabledChanged (Унаследовано от Control)
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)
Paste
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
SelectionChanging
SizeChanged (Унаследовано от FrameworkElement)
Tapped (Унаследовано от UIElement)
TextChanged
TextChanging
TextCompositionChanged
TextCompositionEnded
TextCompositionStarted
Unloaded (Унаследовано от FrameworkElement)

Применяется к