TextBox 類別

定義

代表可以用來顯示或編輯未格式化文字的控制項。Represents a control that can be used to display or edit unformatted text.

public ref class TextBox : System::Windows::Controls::Primitives::TextBoxBase, System::Windows::Markup::IAddChild
[System.Windows.Localizability(System.Windows.LocalizationCategory.Text)]
[System.Windows.Markup.ContentProperty("Text")]
public class TextBox : System.Windows.Controls.Primitives.TextBoxBase, System.Windows.Markup.IAddChild
type TextBox = class
    inherit TextBoxBase
    interface IAddChild
Public Class TextBox
Inherits TextBoxBase
Implements IAddChild
繼承
衍生
屬性
實作

範例

這個範例顯示如何使用 Text 屬性來設定 TextBox 控制項的初始文字內容。This example shows how to use the Text property to set the initial text contents of a TextBox control.

注意

雖然此範例的 Extensible Application Markup Language (XAML) 版本可以使用<textbox, 但文字 > 標記會圍繞每個按鈕的 TextBox 內容的文字, 但這不是必要的, 因為 TextBox 會套用 ContentPropertyAttributeText 屬性的屬性。Although the Extensible Application Markup Language (XAML) version of the example could use the <TextBox.Text> tags around the text of each button's TextBox content, it is not necessary because the TextBox applies the ContentPropertyAttribute attribute to the Text property.

<TextBox Name="tbSettingText">  
  Initial text contents of the TextBox.  
</TextBox>  
tbSettingText.Text = "Initial text contents of the TextBox.";  
tbSettingText.Text = "Initial text contents of the TextBox."  

如需其他範例, 請參閱本檔的4.0 版本:TextBox 類別For additional examples, see the 4.0 version of this document: TextBox Class.

備註

控制項只能包含其Text屬性中未格式化的文字。 TextBoxA TextBox control can contain only unformatted text in its Text property. 下圖顯示的範例TextBoxThe following graphic shows an example of a TextBox.

TextBox 螢幕擷取畫面TextBox screen shot
TextBox 的範例Example of a TextBox

TextBox是由數個封裝元件所組成的複合控制項。TextBox is a composite control that is composed of several encapsulated components. 因此, 某些事件不會反升至包含的控制項, 因為它們是由封裝的子項目所處理。Consequently, some events do not bubble up to the containing control because they are handled by encapsulated child elements. 因此, 應用程式開發人員應該接聽事件的通道版本 (以前置詞 "Preview" 表示)。Because of this, application developers should listen for the tunneling version of an event (denoted by the prefix "Preview").

TextBox僅支援未格式化的文字。TextBox supports unformatted text only. 如需需要支援更豐富內容的應用程式RichTextBox, 請參閱。For applications that require support for richer content, see RichTextBox. 針對需要接受密碼或其他機密輸入的應用程式, 請PasswordBox參閱。For applications that need to accept passwords or other sensitive input, see PasswordBox.

以水準和垂直方式對齊中TextBox的文字, 會使用VerticalContentAlignment和屬性完成。 HorizontalContentAlignmentHorizontally and vertically aligning text within a TextBox is done with the HorizontalContentAlignment and VerticalContentAlignment properties. 使用和屬性VerticalAlignment來對齊頁面版面配置中的。 TextBox HorizontalAlignmentAligning the TextBox within the layout of the page is done with the HorizontalAlignment and VerticalAlignment properties.

隱藏周圍TextBox框線的最佳方式是BorderThickness將的屬性TextBox設定為0The best way to hide the border around a TextBox is to set the BorderThickness property of the TextBox to 0.

重要

TextBox具有反升MouseUpMouseDown事件的內建處理。TextBox has built-in handling for the bubbling MouseUp and MouseDown events. 因此, MouseUp TextBox將不會呼叫接聽或MouseDown事件的自訂事件處理常式。Consequently, custom event handlers that listen for MouseUp or MouseDown events from a TextBox will not be called. 如果您需要回應這些事件, 請改為接聽信道PreviewMouseUpPreviewMouseDown事件, 或HandledEventsToo向引數註冊處理常式 (這個選項只可透過程式碼取得)。If you need to respond to these events, listen for the tunneling PreviewMouseUp and PreviewMouseDown events instead, or register the handlers with the HandledEventsToo argument (this latter option is only available through code). 除非您故意停TextBox用這些事件的原生處理, 否則請勿將事件標示為已處理, 請注意這對控制項的影響很UIUI明顯。Do not mark the event handled unless you deliberately want to disable TextBox native handling of these events, and be aware that this has notable effects on the control's UIUI.

根據預設, 捲軸不TextBox會顯示在上。Scrollbars are not visible on a TextBox by default. 若要顯示捲軸, 請VerticalScrollBarVisibilityHorizontalScrollBarVisibility和屬性Visible設定Auto為或。To make scrollbars visible, set the VerticalScrollBarVisibility and HorizontalScrollBarVisibility properties to Visible or Auto.

通常應該使用TextBox RichTextBox KeyDown事件來偵測中的文字, 或變更, 而不是您預期的方式。 TextChangedUsually the TextChanged event should be used to detect whenever the text in a TextBox or RichTextBox changes rather then KeyDown as you might expect. 請參閱How to:偵測 TextBox 中的文字何時已變更的範例。See How to: Detect When Text in a TextBox Has Changed for an example.

自訂 TextBox 控制項Customizing the TextBox Control

若要將相同的屬性設定套用TextBox至多個控制項Style , 請使用屬性。To apply the same property settings to multiple TextBox controls, use the Style property. 您可以修改預設值ControlTemplate , 為控制項提供獨特的外觀。You can modify the default ControlTemplate to give the control a unique appearance. 如需建立的ControlTemplate詳細資訊, 請參閱藉由建立 ControlTemplate 自訂現有控制項的外觀For more information about creating a ControlTemplate, see Customizing the Appearance of an Existing Control by Creating a ControlTemplate. 若要查看特定TextBox的元件和狀態, 請參閱TextBox 樣式和範本To see the parts and states that are specific to the TextBox, see TextBox Styles and Templates.

這個控制項的相依性屬性可能是由控制項的預設樣式所設定。Dependency properties for this control might be set by the control's default style. 如果屬性是由預設樣式所設定, 當應用程式中出現控制項時, 該屬性可能會從其預設值變更。If a property is set by a default style, the property might change from its default value when the control appears in the application. 預設樣式取決於應用程式執行時使用的桌面主題。The default style is determined by which desktop theme is used when the application is running. 如需詳細資訊, 請參閱預設 WPF 主題For more information, see Default WPF Themes.

注意

如果該屬性同時顯示於控制項的預設範本,並使用 TemplateBinding 來設定,則設定視覺效果屬性僅具效果作用。Setting a visual property only has an effect if that property is both present in the control's default template and is set by using a TemplateBinding. 您可以在通過建立 ControlTemplate 自訂現有控制項的外觀文章的變更控制項的視覺效果結構一節中找到視覺效果屬性清單。You can find a list of visual properties in the Changing the Visual Structure of a Control section in the Customizing the Appearance of an Existing Control by Creating a ControlTemplate article.

建構函式

TextBox()

初始化 TextBox 類別的新執行個體。Initializes a new instance of the TextBox class.

欄位

CharacterCasingProperty

識別 CharacterCasing 相依性屬性。Identifies the CharacterCasing dependency property.

MaxLengthProperty

識別 MaxLength 相依性屬性。Identifies the MaxLength dependency property.

MaxLinesProperty

識別 MaxLines 相依性屬性。Identifies the MaxLines dependency property.

MinLinesProperty

識別 MinLines 相依性屬性。Identifies the MinLines dependency property.

TextAlignmentProperty

識別 TextAlignment 相依性屬性。Identifies the TextAlignment dependency property.

TextDecorationsProperty

識別 TextDecorations 相依性屬性。Identifies the TextDecorations dependency property.

TextProperty

識別 Text 相依性屬性。Identifies the Text dependency property.

TextWrappingProperty

識別 TextWrapping 相依性屬性。Identifies the TextWrapping dependency property.

屬性

AcceptsReturn

取得或設定值,該值指出當使用者按下 ENTER 鍵時,文字編輯控制項的回應方式。Gets or sets a value that indicates how the text editing control responds when the user presses the ENTER key.

(繼承來源 TextBoxBase)
AcceptsTab

取得或設定使用者按下 TAB 鍵時,文字編輯控制項如何回應的值。Gets or sets a value that indicates how the text editing control responds when the user presses the TAB key.

(繼承來源 TextBoxBase)
ActualHeight

取得呈現此項目的高度。Gets the rendered height of this element.

(繼承來源 FrameworkElement)
ActualWidth

取得呈現此項目的寬度。Gets the rendered width of this element.

(繼承來源 FrameworkElement)
AllowDrop

取得或設定此元素是否可以當做拖放操作目標的值。Gets or sets a value indicating whether this element can be used as the target of a drag-and-drop operation. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
AreAnyTouchesCaptured

取得值,這個值表示是否至少有一個觸控擷取至這個項目。Gets a value that indicates whether at least one touch is captured to this element.

(繼承來源 UIElement)
AreAnyTouchesCapturedWithin

取得值,這個值表示是否至少有一個觸控擷取至這個項目或其視覺化樹狀結構中的任何子項目。Gets a value that indicates whether at least one touch is captured to this element or to any child elements in its visual tree.

(繼承來源 UIElement)
AreAnyTouchesDirectlyOver

取得值,這個值表示是否至少有一個觸控在這個項目上按下。Gets a value that indicates whether at least one touch is pressed over this element.

(繼承來源 UIElement)
AreAnyTouchesOver

取得值,這個值表示是否至少有一個觸控在這個項目或其視覺化樹狀結構中的任何子項目上按下。Gets a value that indicates whether at least one touch is pressed over this element or any child elements in its visual tree.

(繼承來源 UIElement)
AutoWordSelection

取得或設定使用者以滑鼠拖曳並選取文字部分時,是否要選取該文字其他部分的值。Gets or sets a value that determines whether when a user selects part of a word by dragging across it with the mouse, the rest of the word is selected.

(繼承來源 TextBoxBase)
Background

取得或設定描述控制項背景的筆刷。Gets or sets a brush that describes the background of a control.

(繼承來源 Control)
BindingGroup

取得或設定用於項目的 BindingGroupGets or sets the BindingGroup that is used for the element.

(繼承來源 FrameworkElement)
BitmapEffect

取得或設定直接套用至此元素呈現內容的點陣圖效果。Gets or sets a bitmap effect that applies directly to the rendered content for this element. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
BitmapEffectInput

取得或設定直接套用至此元素呈現內容的點陣圖效果輸入來源。Gets or sets an input source for the bitmap effect that applies directly to the rendered content for this element. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
BorderBrush

取得或設定描述控制項框線背景的筆刷。Gets or sets a brush that describes the border background of a control.

(繼承來源 Control)
BorderThickness

取得或設定控制項的框線粗細。Gets or sets the border thickness of a control.

(繼承來源 Control)
CacheMode

取得或設定 UIElement 的快取表示。Gets or sets a cached representation of the UIElement.

(繼承來源 UIElement)
CanRedo

取得值,這個值表示是否能夠重新執行最近一個復原動作。Gets a value that indicates whether the most recent undo action can be redone.

(繼承來源 TextBoxBase)
CanUndo

取得值,這個值表示是否能夠復原最近一個動作。Gets a value that indicates whether the most recent action can be undone.

(繼承來源 TextBoxBase)
CaretBrush

取得或設定用來繪製文字方塊插入號的筆刷。Gets or sets the brush that is used to paint the caret of the text box.

(繼承來源 TextBoxBase)
CaretIndex

取得或設定插入號的插入位置索引。Gets or sets the insertion position index of the caret.

CharacterCasing

取得或設定將字元手動輸入文字方塊時的大小寫。Gets or sets how characters are cased when they are manually entered into the text box.

Clip

取得或設定用來定義項目內容外框的幾何。Gets or sets the geometry used to define the outline of the contents of an element. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
ClipToBounds

取得或設定是否裁剪此元素 (或來自此元素的子元素) 的內容,以符合容器元素大小的值。Gets or sets a value indicating whether to clip the content of this element (or content coming from the child elements of this element) to fit into the size of the containing element. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
CommandBindings

取得與這個項目關聯的 CommandBinding 物件集合。Gets a collection of CommandBinding objects associated with this element. CommandBinding 會啟用此項目的命令處理,並宣告命令、其事件及此項目所附加之處理常式之間的連結。A CommandBinding enables command handling for this element, and declares the linkage between a command, its events, and the handlers attached by this element.

(繼承來源 UIElement)
ContextMenu

取得或設定透過操作功能表項目的 使用者介面 (UI)user interface (UI) 要求操作功能表時應該出現的操作功能表項目。Gets or sets the context menu element that should appear whenever the context menu is requested through 使用者介面 (UI)user interface (UI) from within this element.

(繼承來源 FrameworkElement)
Cursor

取得或設定滑鼠指標在此元素上方時所顯示的游標。Gets or sets the cursor that displays when the mouse pointer is over this element.

(繼承來源 FrameworkElement)
DataContext

取得或設定項目在參與資料繫結時的資料內容。Gets or sets the data context for an element when it participates in data binding.

(繼承來源 FrameworkElement)
DefaultStyleKey

取得或設定可在使用或定義佈景主題樣式時,用來參考這個控制項之樣式的索引鍵。Gets or sets the key to use to reference the style for this control, when theme styles are used or defined.

(繼承來源 FrameworkElement)
DependencyObjectType

取得包裝此執行個體之 CLRCLR 型別的 DependencyObjectTypeGets the DependencyObjectType that wraps the CLRCLR type of this instance.

(繼承來源 DependencyObject)
DesiredSize

取得這個項目在版面配置處理序的測量傳遞期間所計算的大小。Gets the size that this element computed during the measure pass of the layout process.

(繼承來源 UIElement)
Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

(繼承來源 DispatcherObject)
Effect

取得或設定要套用至 UIElement 的點陣圖效果。Gets or sets the bitmap effect to apply to the UIElement. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
ExtentHeight

取得可見內容區域的垂直大小。Gets the vertical size of the visible content area.

(繼承來源 TextBoxBase)
ExtentWidth

取得可見內容區域的水平大小。Gets the horizontal size of the visible content area.

(繼承來源 TextBoxBase)
FlowDirection

取得或設定文字和其他 使用者介面 (UI)user interface (UI) 項目在控制其配置的任何父項目中的流向。Gets or sets the direction that text and other 使用者介面 (UI)user interface (UI) elements flow within any parent element that controls their layout.

(繼承來源 FrameworkElement)
Focusable

取得或設定元素是否能夠接收焦點的值。Gets or sets a value that indicates whether the element can receive focus. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
FocusVisualStyle

取得或設定屬性,這個屬性可自訂外觀、效果或其他樣式特性,以在這個項目捕捉到鍵盤焦點時套用至項目。Gets or sets a property that enables customization of appearance, effects, or other style characteristics that will apply to this element when it captures keyboard focus.

(繼承來源 FrameworkElement)
FontFamily

取得或設定控制項的字型系列。Gets or sets the font family of the control.

(繼承來源 Control)
FontSize

取得或設定字型大小。Gets or sets the font size.

(繼承來源 Control)
FontStretch

取得或設定螢幕上字型緊縮或加寬的程度。Gets or sets the degree to which a font is condensed or expanded on the screen.

(繼承來源 Control)
FontStyle

取得或設定字型樣式。Gets or sets the font style.

(繼承來源 Control)
FontWeight

取得或設定指定字型的粗細。Gets or sets the weight or thickness of the specified font.

(繼承來源 Control)
ForceCursor

取得或設定值,這個值表示此 FrameworkElement 是否應強制使用者介面 (UI)user interface (UI) 呈現游標,如 Cursor 屬性所宣告。Gets or sets a value that indicates whether this FrameworkElement should force the 使用者介面 (UI)user interface (UI) to render the cursor as declared by the Cursor property.

(繼承來源 FrameworkElement)
Foreground

取得或設定描述前景色彩的筆刷。Gets or sets a brush that describes the foreground color.

(繼承來源 Control)
HandlesScrolling

取得值,這個值表示控制項是否支援捲動。Gets a value that indicates whether a control supports scrolling.

(繼承來源 Control)
HasAnimatedProperties

取得值,這個值表示此項目是否有任何動畫屬性。Gets a value indicating whether this element has any animated properties.

(繼承來源 UIElement)
HasEffectiveKeyboardFocus

取得值,指出 UIElement 是否具有焦點。Gets a value that indicates whether the UIElement has focus.

(繼承來源 UIElement)
Height

取得或設定項目的建議高度。Gets or sets the suggested height of the element.

(繼承來源 FrameworkElement)
HorizontalAlignment

取得或設定套用至此元素在父項元素 (例如面板或項目控制項) 中組成時的水平對齊特性。Gets or sets the horizontal alignment characteristics applied to this element when it is composed within a parent element, such as a panel or items control.

(繼承來源 FrameworkElement)
HorizontalContentAlignment

取得或設定控制項內容的水平對齊。Gets or sets the horizontal alignment of the control's content.

(繼承來源 Control)
HorizontalOffset

取得或設定水平捲軸位置。Gets or sets the horizontal scroll position.

(繼承來源 TextBoxBase)
HorizontalScrollBarVisibility

取得或設定值,這個值表示是否要顯示水平捲軸。Gets or sets a value that indicates whether a horizontal scroll bar is shown.

(繼承來源 TextBoxBase)
InheritanceBehavior

取得或設定屬性值繼承的範圍限制、資源索引鍵查閱,以及 RelativeSource FindAncestor 查閱。Gets or sets the scope limits for property value inheritance, resource key lookup, and RelativeSource FindAncestor lookup.

(繼承來源 FrameworkElement)
InputBindings

取得與此元素關聯的輸入繫結集合。Gets the collection of input bindings associated with this element.

(繼承來源 UIElement)
InputScope

取得或設定此 FrameworkElement 使用的輸入內容。Gets or sets the context for input used by this FrameworkElement.

(繼承來源 FrameworkElement)
IsArrangeValid

取得值,這個值表示在此項目之配置中子項目的計算大小和位置是有效的。Gets a value indicating whether the computed size and position of child elements in this element's layout are valid.

(繼承來源 UIElement)
IsEnabled

取得或設定值,這個值表示 使用者介面 (UI)user interface (UI) 中是否已啟用這個項目。Gets or sets a value indicating whether this element is enabled in the 使用者介面 (UI)user interface (UI). 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
IsEnabledCore

取得值,這個值會成為衍生類別中 IsEnabled 的傳回值。Gets a value that becomes the return value of IsEnabled in derived classes.

(繼承來源 UIElement)
IsFocused

取得值,決定這個項目是否具有邏輯焦點。Gets a value that determines whether this element has logical focus. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
IsHitTestVisible

取得或設定宣告此元素是否可以從其呈現內容的某些部分傳回,作為點擊測試結果的值。Gets or sets a value that declares whether this element can possibly be returned as a hit test result from some portion of its rendered content. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
IsInactiveSelectionHighlightEnabled

取得或設定值,指出文字方塊是否會在文字方塊沒有焦點時,顯示選取的文字。Gets or sets a value that indicates whether the text box displays selected text when the text box does not have focus.

(繼承來源 TextBoxBase)
IsInitialized

取得值,指出在由 XAMLXAML 處理器處理期間,或是明確地呼叫 EndInit() 方法時,是否已初始化這個項目。Gets a value that indicates whether this element has been initialized, either during processing by a XAMLXAML processor, or by explicitly having its EndInit() method called.

(繼承來源 FrameworkElement)
IsInputMethodEnabled

取得值,指出輸入法系統 (例如 輸入法 (IME)Input Method Editor (IME)) 是否已為處理這個項目的輸入而啟用。Gets a value indicating whether an input method system, such as an 輸入法 (IME)Input Method Editor (IME), is enabled for processing the input to this element.

(繼承來源 UIElement)
IsKeyboardFocused

取得值,指出這個項目是否具有鍵盤焦點。Gets a value indicating whether this element has keyboard focus. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
IsKeyboardFocusWithin

取得值,表示鍵盤焦點是否在項目或其視覺化樹狀結構子項目內的任何位置。Gets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
IsLoaded

取得值,這個值表示此項目是否已載入以供展示。Gets a value that indicates whether this element has been loaded for presentation.

(繼承來源 FrameworkElement)
IsManipulationEnabled

取得或設定值,這個值表示是否在此 UIElement 上啟用操作事件。Gets or sets a value that indicates whether manipulation events are enabled on this UIElement.

(繼承來源 UIElement)
IsMeasureValid

取得值,這個值表示配置測量所傳回的目前大小是否有效。Gets a value indicating whether the current size returned by layout measure is valid.

(繼承來源 UIElement)
IsMouseCaptured

取得值,指出是否將滑鼠擷取至這個項目。Gets a value indicating whether the mouse is captured to this element. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
IsMouseCaptureWithin

取得值,這個值決定滑鼠擷取是由這個項目持有,還是由其視覺化樹狀中的子項目持有。Gets a value that determines whether mouse capture is held by this element or by child elements in its visual tree. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
IsMouseDirectlyOver

取得值,指出滑鼠指標位置是否與點擊測試結果對應,該結果會將複合項目納入考量。Gets a value that indicates whether the position of the mouse pointer corresponds to hit test results, which take element compositing into account. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
IsMouseOver

取得值,指出滑鼠指標是否在這個項目上方 (包括視覺化樹狀中的子項目)。Gets a value indicating whether the mouse pointer is located over this element (including child elements in the visual tree). 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
IsReadOnly

取得或設定文字編輯控制項與使用者互動時是否為唯讀的值。Gets or sets a value that indicates whether the text editing control is read-only to a user interacting with the control.

(繼承來源 TextBoxBase)
IsReadOnlyCaretVisible

取得或設定值,這個值表示唯讀文字方塊是否顯示插入號。Gets or sets a value that indicates whether a read-only text box displays a caret.

(繼承來源 TextBoxBase)
IsSealed

取得值,這個值表示此執行個體目前是否已密封 (唯讀)。Gets a value that indicates whether this instance is currently sealed (read-only).

(繼承來源 DependencyObject)
IsSelectionActive

取得值,指出文字方塊是否具有焦點和選取的文字。Gets a value that indicates whether the text box has focus and selected text.

(繼承來源 TextBoxBase)
IsStylusCaptured

取得值,指出這個項目是否擷取手寫筆。Gets a value indicating whether the stylus is captured by this element. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
IsStylusCaptureWithin

取得值,這個值決定手寫筆擷取是由這個項目持有,還是由項目範圍及其視覺化樹狀結構中的項目持有。Gets a value that determines whether stylus capture is held by this element, or an element within the element bounds and its visual tree. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
IsStylusDirectlyOver

取得值,指出手寫筆位置是否與點擊測試結果相對應,該結果會將複合項目納入考量。Gets a value that indicates whether the stylus position corresponds to hit test results, which take element compositing into account. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
IsStylusOver

取得值,指出手寫筆游標是否位在這個項目上方 (包括視覺子項目)。Gets a value indicating whether the stylus cursor is located over this element (including visual child elements). 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
IsTabStop

取得或設定值,這個值表示控制項是否包含於索引標籤巡覽。Gets or sets a value that indicates whether a control is included in tab navigation.

(繼承來源 Control)
IsUndoEnabled

取得或設定文字編輯控制項是否啟用復原支援的值。Gets or sets a value that indicates whether undo support is enabled for the text-editing control.

(繼承來源 TextBoxBase)
IsVisible

取得值,表示這個項目在 使用者介面 (UI)user interface (UI) 中是否可見。Gets a value indicating whether this element is visible in the 使用者介面 (UI)user interface (UI). 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
Language

取得或設定套用至項目的當地語系化/全球化語言資訊。Gets or sets localization/globalization language information that applies to an element.

(繼承來源 FrameworkElement)
LayoutTransform

取得或設定應在執行配置時,套用在這個項目圖形轉換。Gets or sets a graphics transformation that should apply to this element when layout is performed.

(繼承來源 FrameworkElement)
LineCount

取得在文字方塊中的總行數。Gets the total number of lines in the text box.

LogicalChildren

取得 TextBox 之邏輯子項目的列舉程式。Gets an enumerator for the logical child elements of the TextBox.

Margin

取得或設定項目的外邊界。Gets or sets the outer margin of an element.

(繼承來源 FrameworkElement)
MaxHeight

取得或設定元素的最大高度限制。Gets or sets the maximum height constraint of the element.

(繼承來源 FrameworkElement)
MaxLength

取得或設定可手動輸入至文字方塊中的最大字元數。Gets or sets the maximum number of characters that can be manually entered into the text box.

MaxLines

取得或設定可看見的最大行數。Gets or sets the maximum number of visible lines.

MaxWidth

取得或設定元素的最大寬度限制。Gets or sets the maximum width constraint of the element.

(繼承來源 FrameworkElement)
MinHeight

取得或設定元素的最小高度限制。Gets or sets the minimum height constraint of the element.

(繼承來源 FrameworkElement)
MinLines

取得或設定可看見的最小行數。Gets or sets the minimum number of visible lines.

MinWidth

取得或設定元素的最小寬度限制。Gets or sets the minimum width constraint of the element.

(繼承來源 FrameworkElement)
Name

取得或設定項目的識別名稱。Gets or sets the identifying name of the element. 此名稱提供參考,以便程式碼後置 (例如事件處理常式程式碼) 可以在 XAMLXAML 處理器處理期間建構標記項目之後參考此項目。The name provides a reference so that code-behind, such as event handler code, can refer to a markup element after it is constructed during processing by a XAMLXAML processor.

(繼承來源 FrameworkElement)
Opacity

取得或設定套用至整個 UIElement (在 使用者介面 (UI)user interface (UI) 中呈現時) 的不透明度因數。Gets or sets the opacity factor applied to the entire UIElement when it is rendered in the 使用者介面 (UI)user interface (UI). 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
OpacityMask

取得或設定套用至任何 Alpha 色板遮罩 (用來遮住此項目的呈現內容) 時實作 Brush 的不透明度遮罩。Gets or sets an opacity mask, as a Brush implementation that is applied to any alpha-channel masking for the rendered content of this element. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
OverridesDefaultStyle

取得或設定此元素的樣式屬性是否來自佈景主題樣式的值。Gets or sets a value that indicates whether this element incorporates style properties from theme styles.

(繼承來源 FrameworkElement)
Padding

取得或設定控制項內部的邊框間距。Gets or sets the padding inside a control.

(繼承來源 Control)
Parent

取得這個項目的邏輯父項目。Gets the logical parent element of this element.

(繼承來源 FrameworkElement)
PersistId

取得值,這個值可唯一識別此項目。Gets a value that uniquely identifies this element.

(繼承來源 UIElement)
RenderSize

取得 (或設定) 這個項目的最終呈現大小。Gets (or sets) the final render size of this element.

(繼承來源 UIElement)
RenderTransform

取得或設定影響這個項目呈現位置的轉換資訊。Gets or sets transform information that affects the rendering position of this element. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
RenderTransformOrigin

取得或設定 RenderTransform (相對於項目邊界) 宣告任何可能呈現轉換的中心點。Gets or sets the center point of any possible render transform declared by RenderTransform, relative to the bounds of the element. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
Resources

取得或設定在本機定義的資源字典。Gets or sets the locally-defined resource dictionary.

(繼承來源 FrameworkElement)
SelectedText

取得或設定文字方塊中目前選取項目的內容。Gets or sets the content of the current selection in the text box.

SelectionBrush

取得或設定會反白顯示所選取文字的筆刷。Gets or sets the brush that highlights selected text.

(繼承來源 TextBoxBase)
SelectionLength

取得或設定值,這個值表示文字方塊中目前選取範圍的字元數。Gets or sets a value indicating the number of characters in the current selection in the text box.

SelectionOpacity

取得或設定 SelectionBrush 的不透明度。Gets or sets the opacity of the SelectionBrush.

(繼承來源 TextBoxBase)
SelectionStart

針對目前選取範圍的開頭,取得或設定字元索引。Gets or sets a character index for the beginning of the current selection.

SelectionTextBrush

取得或設定值,這個值會定義用於所選文字的筆刷。Gets or sets a value that defines the brush used for selected text.

(繼承來源 TextBoxBase)
SnapsToDevicePixels

取得或設定值,該值判斷這個項目的呈現在呈現期間是否該使用裝置特定像素的設定。Gets or sets a value that determines whether rendering for this element should use device-specific pixel settings during rendering. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
SpellCheck

取得 SpellCheck 物件,該物件可提供對 TextBoxBaseRichTextBox 文字內容之拼字錯誤的存取權。Gets a SpellCheck object that provides access to spelling errors in the text contents of a TextBoxBase or RichTextBox.

(繼承來源 TextBoxBase)
Style

取得或設定這個項目呈現時要使用的樣式。Gets or sets the style used by this element when it is rendered.

(繼承來源 FrameworkElement)
StylusPlugIns

取得與這個項目關聯的所有手寫筆外掛程式 (自訂) 物件集合。Gets a collection of all stylus plug-in (customization) objects associated with this element.

(繼承來源 UIElement)
TabIndex

取得或設定值,此值會決定當使用者使用 TAB 鍵巡覽控制項時,項目接收焦點的順序。Gets or sets a value that determines the order in which elements receive focus when the user navigates through controls by using the TAB key.

(繼承來源 Control)
Tag

取得或設定可以用來儲存關於此元素自訂資訊的任意物件值。Gets or sets an arbitrary object value that can be used to store custom information about this element.

(繼承來源 FrameworkElement)
Template

取得或設定控制項範本。Gets or sets a control template.

(繼承來源 Control)
TemplatedParent

取得這個項目的範本父代參考。Gets a reference to the template parent of this element. 如果項目不是透過範本建立,則這個屬性無關。This property is not relevant if the element was not created through a template.

(繼承來源 FrameworkElement)
Text

取得或設定文字方塊的文字內容。Gets or sets the text contents of the text box.

TextAlignment

取得或設定文字方塊內容的水平對齊。Gets or sets the horizontal alignment of the contents of the text box.

TextDecorations

取得要套用至文字方塊的文字裝飾。Gets the text decorations to apply to the text box.

TextWrapping

取得或設定文字方塊如何包圍文字。Gets or sets how the text box should wrap text.

ToolTip

取得或設定工具提示物件,該物件會為使用者介面 (UI)user interface (UI) 中的這個項目而顯示。Gets or sets the tool-tip object that is displayed for this element in the 使用者介面 (UI)user interface (UI).

(繼承來源 FrameworkElement)
TouchesCaptured

取得已擷取至這個項目的所有觸控裝置。Gets all touch devices that are captured to this element.

(繼承來源 UIElement)
TouchesCapturedWithin

取得已擷取至這個項目或其視覺化樹狀結構中之任何子項目的所有觸控裝置。Gets all touch devices that are captured to this element or any child elements in its visual tree.

(繼承來源 UIElement)
TouchesDirectlyOver

取得在這個項目上停留的所有觸控裝置。Gets all touch devices that are over this element.

(繼承來源 UIElement)
TouchesOver

取得在這個項目或其視覺化樹狀結構中之任何子項目上停留的所有觸控裝置。Gets all touch devices that are over this element or any child elements in its visual tree.

(繼承來源 UIElement)
Triggers

取得直接在這個項目或子項目中建立的觸發程序集合。Gets the collection of triggers established directly on this element, or in child elements.

(繼承來源 FrameworkElement)
Typography

針對文字方塊的文字內容,取得目前有效的印刷樣式變化。Gets the currently effective typography variations for the text contents of the text box.

Uid

取得或設定這個項目的唯一識別項 (適用於當地語系化)。Gets or sets the unique identifier (for localization) for this element. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
UndoLimit

取得或設定復原佇列中儲存的動作數目。Gets or sets the number of actions stored in the undo queue.

(繼承來源 TextBoxBase)
UseLayoutRounding

取得或設定值,指出配置進位是否應該在配置期間套用到這個項目的大小和位置。Gets or sets a value that indicates whether layout rounding should be applied to this element's size and position during layout.

(繼承來源 FrameworkElement)
VerticalAlignment

取得或設定套用至此項目在父項目 (例如面板或項目控制項) 中組成時的垂直對齊特性。Gets or sets the vertical alignment characteristics applied to this element when it is composed within a parent element such as a panel or items control.

(繼承來源 FrameworkElement)
VerticalContentAlignment

取得或設定控制項內容的垂直對齊。Gets or sets the vertical alignment of the control's content.

(繼承來源 Control)
VerticalOffset

取得或設定垂直捲軸的位置。Gets or sets the vertical scroll position.

(繼承來源 TextBoxBase)
VerticalScrollBarVisibility

取得或設定值,這個值表示是否要顯示垂直捲軸。Gets or sets a value that indicates whether a vertical scroll bar is shown.

(繼承來源 TextBoxBase)
ViewportHeight

取得可捲動內容區域的垂直大小。Gets the vertical size of the scrollable content area.

(繼承來源 TextBoxBase)
ViewportWidth

取得可捲動內容區域的水平大小。Gets the horizontal size of the scrollable content area.

(繼承來源 TextBoxBase)
Visibility

取得或設定這個項目的 使用者介面 (UI)user interface (UI) 可見性。Gets or sets the 使用者介面 (UI)user interface (UI) visibility of this element. 這是相依性屬性。This is a dependency property.

(繼承來源 UIElement)
VisualBitmapEffect

取得或設定 BitmapEffectVisual 值。Gets or sets the BitmapEffect value for the Visual.

(繼承來源 Visual)
VisualBitmapEffectInput

取得或設定 BitmapEffectInputVisual 值。Gets or sets the BitmapEffectInput value for the Visual.

(繼承來源 Visual)
VisualBitmapScalingMode

取得或設定 BitmapScalingModeVisualGets or sets the BitmapScalingMode for the Visual.

(繼承來源 Visual)
VisualCacheMode

取得或設定 Visual 的快取表示。Gets or sets a cached representation of the Visual.

(繼承來源 Visual)
VisualChildrenCount

取得這個項目內的視覺化子項目數。Gets the number of visual child elements within this element.

(繼承來源 FrameworkElement)
VisualClearTypeHint

取得或設定 ClearTypeHint,以決定 Visual 中的 ClearType 呈現方式。Gets or sets the ClearTypeHint that determines how ClearType is rendered in the Visual.

(繼承來源 Visual)
VisualClip

取得或設定 Visual 的裁剪區域做為 Geometry 值。Gets or sets the clip region of the Visual as a Geometry value.

(繼承來源 Visual)
VisualEdgeMode

取得或設定 Visual 的邊緣模式做為 EdgeMode 值。Gets or sets the edge mode of the Visual as an EdgeMode value.

(繼承來源 Visual)
VisualEffect

取得或設定要套用至 Visual 的點陣圖效果。Gets or sets the bitmap effect to apply to the Visual.

(繼承來源 Visual)
VisualOffset

取得或設定視覺物件的位移值。Gets or sets the offset value of the visual object.

(繼承來源 Visual)
VisualOpacity

取得或設定 Visual 的不透明度。Gets or sets the opacity of the Visual.

(繼承來源 Visual)
VisualOpacityMask

取得或設定 Brush 值,這個值表示 Visual 的不透明遮罩。Gets or sets the Brush value that represents the opacity mask of the Visual.

(繼承來源 Visual)
VisualParent

取得視覺物件的視覺化樹狀結構父物件。Gets the visual tree parent of the visual object.

(繼承來源 Visual)
VisualScrollableAreaClip

取得或設定 Visual 的可捲動裁剪區域。Gets or sets a clipped scrollable area for the Visual.

(繼承來源 Visual)
VisualTextHintingMode

取得或設定 VisualTextHintingModeGets or sets the TextHintingMode of the Visual.

(繼承來源 Visual)
VisualTextRenderingMode

取得或設定 VisualTextRenderingModeGets or sets the TextRenderingMode of the Visual.

(繼承來源 Visual)
VisualTransform

取得或設定 TransformVisual 值。Gets or sets the Transform value for the Visual.

(繼承來源 Visual)
VisualXSnappingGuidelines

取得或設定 X 座標 (垂直) 導線集合。Gets or sets the x-coordinate (vertical) guideline collection.

(繼承來源 Visual)
VisualYSnappingGuidelines

取得或設定 Y 座標 (水平) 導線集合。Gets or sets the y-coordinate (horizontal) guideline collection.

(繼承來源 Visual)
Width

取得或設定元素的寬度。Gets or sets the width of the element.

(繼承來源 FrameworkElement)

方法

AddHandler(RoutedEvent, Delegate)

加入所指定路由事件的路由事件處理常式,會將此處理常式加入目前項目的處理常式集合中。Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element.

(繼承來源 UIElement)
AddHandler(RoutedEvent, Delegate, Boolean)

加入所指定路由事件的路由事件處理常式,會將此處理常式加入目前項目的處理常式集合中。Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. handledEventsToo 指定為 true,為已標示為由事件路由上另一個項目處理的事件叫用提供的處理常式。Specify handledEventsToo as true to have the provided handler be invoked for routed event that had already been marked as handled by another element along the event route.

(繼承來源 UIElement)
AddLogicalChild(Object)

將所提供的物件加入至此項目的邏輯樹狀結構。Adds the provided object to the logical tree of this element.

(繼承來源 FrameworkElement)
AddToEventRoute(EventRoute, RoutedEventArgs)

針對目前的 EventRoute 事件處理常式集合,將處理常式加入至指定的 UIElementAdds handlers to the specified EventRoute for the current UIElement event handler collection.

(繼承來源 UIElement)
AddVisualChild(Visual)

定義兩個視覺項目之間的父-子關係。Defines the parent-child relationship between two visuals.

(繼承來源 Visual)
AppendText(String)

將字串附加至文字控制項的內容。Appends a string to the contents of a text control.

(繼承來源 TextBoxBase)
ApplyAnimationClock(DependencyProperty, AnimationClock)

將動畫套用至這個項目上所指定的相依性屬性。Applies an animation to a specified dependency property on this element. 任何現有動畫都會停止並取代為新的動畫。Any existing animations are stopped and replaced with the new animation.

(繼承來源 UIElement)
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)

將動畫套用至這個項目上所指定的相依性屬性,且可以指定此屬性已經有執行中的動畫時會發生哪種情況。Applies an animation to a specified dependency property on this element, with the ability to specify what happens if the property already has a running animation.

(繼承來源 UIElement)
ApplyTemplate()

如有必要,則建置目前範本的視覺化樹狀結構,並傳回值,指出此呼叫是否已重建視覺化樹狀結構。Builds the current template's visual tree if necessary, and returns a value that indicates whether the visual tree was rebuilt by this call.

(繼承來源 FrameworkElement)
Arrange(Rect)

放置子項目,並且判斷 UIElement 的大小。Positions child elements and determines a size for a UIElement. 父項目從 ArrangeCore(Rect) 實作 (或 WPF 架構層級對等項目) 中呼叫此方法,以形成遞迴配置更新。Parent elements call this method from their ArrangeCore(Rect) implementation (or a WPF framework-level equivalent) to form a recursive layout update. 這個方法會構成配置更新的第二個階段。This method constitutes the second pass of a layout update.

(繼承來源 UIElement)
ArrangeCore(Rect)

實作 ArrangeCore(Rect) (在 UIElement 內定義為 Virtual),並密封實作。Implements ArrangeCore(Rect) (defined as virtual in UIElement) and seals the implementation.

(繼承來源 FrameworkElement)
ArrangeOverride(Size)

呼叫以排列 Control 物件內容,並調整大小。Called to arrange and size the content of a Control object.

(繼承來源 Control)
BeginAnimation(DependencyProperty, AnimationTimeline)

針對這個項目之指定的動畫屬性,開始播放動畫。Starts an animation for a specified animated property on this element.

(繼承來源 UIElement)
BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)

針對此項目上指定的動畫屬性啟動特定動畫,且可以選擇指定如果屬性已經有執行中的動畫時會發生何種情況。Starts a specific animation for a specified animated property on this element, with the option of specifying what happens if the property already has a running animation.

(繼承來源 UIElement)
BeginChange()

開始變更區塊。Begins a change block.

(繼承來源 TextBoxBase)
BeginInit()

啟動這個項目的初始化處理序 (Process)。Starts the initialization process for this element.

(繼承來源 FrameworkElement)
BeginStoryboard(Storyboard)

開始提供之腳本中包含的動作順序。Begins the sequence of actions that are contained in the provided storyboard.

(繼承來源 FrameworkElement)
BeginStoryboard(Storyboard, HandoffBehavior)

使用若屬性已經顯示動畫時應發生之情形的指定選項,開始提供之腳本中包含的動作順序。Begins the sequence of actions contained in the provided storyboard, with options specified for what should happen if the property is already animated.

(繼承來源 FrameworkElement)
BeginStoryboard(Storyboard, HandoffBehavior, Boolean)

使用控制啟動後之動畫的指定狀態,開始提供之腳本中包含的動作順序。Begins the sequence of actions contained in the provided storyboard, with specified state for control of the animation after it is started.

(繼承來源 FrameworkElement)
BringIntoView()

在內含此項目的任何可捲動區域內,嘗試將此項目帶入檢視。Attempts to bring this element into view, within any scrollable regions it is contained within.

(繼承來源 FrameworkElement)
BringIntoView(Rect)

在內含此項目的任何可捲動區域內,嘗試將此項目所提供的區域大小帶入檢視。Attempts to bring the provided region size of this element into view, within any scrollable regions it is contained within.

(繼承來源 FrameworkElement)
CaptureMouse()

嘗試強制將滑鼠的捕捉給這個項目。Attempts to force capture of the mouse to this element.

(繼承來源 UIElement)
CaptureStylus()

嘗試強制將手寫筆的捕捉給這個項目。Attempts to force capture of the stylus to this element.

(繼承來源 UIElement)
CaptureTouch(TouchDevice)

嘗試強制將觸控擷取至這個項目。Attempts to force capture of a touch to this element.

(繼承來源 UIElement)
CheckAccess()

判斷呼叫的執行是否可以存取這個 DispatcherObjectDetermines whether the calling thread has access to this DispatcherObject.

(繼承來源 DispatcherObject)
Clear()

將所有內容從文字方塊中清除。Clears all the content from the text box.

ClearValue(DependencyProperty)

清除屬性的區域數值。Clears the local value of a property. 要清除的屬性是由 DependencyProperty 識別項所指定。The property to be cleared is specified by a DependencyProperty identifier.

(繼承來源 DependencyObject)
ClearValue(DependencyPropertyKey)

清除唯讀屬性的區域數值。Clears the local value of a read-only property. 要清除的屬性是由 DependencyPropertyKey 所指定。The property to be cleared is specified by a DependencyPropertyKey.

(繼承來源 DependencyObject)
CoerceValue(DependencyProperty)

強制轉型所指定相依性屬性的值。Coerces the value of the specified dependency property. 完成方式是叫用存在於呼叫 DependencyObject 之相依性屬性的屬性中繼資料中所指定的任何 CoerceValueCallback 函式。This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.

(繼承來源 DependencyObject)
Copy()

將文字編輯控制項的目前選項文字複製到 ClipboardCopies the current selection of the text editing control to the Clipboard.

(繼承來源 TextBoxBase)
Cut()

從文字編輯控制項中移除目前選項,並將其複製到 ClipboardRemoves the current selection from the text editing control and copies it to the Clipboard.

(繼承來源 TextBoxBase)
DeclareChangeBlock()

建立變更區塊。Creates a change block.

(繼承來源 TextBoxBase)
EndChange()

結束變更區塊。Ends a change block.

(繼承來源 TextBoxBase)
EndInit()

表示項目的初始設定程序已完成。Indicates that the initialization process for the element is complete.

(繼承來源 FrameworkElement)
Equals(Object)

判斷提供的 DependencyObject 和目前的 DependencyObject 是否相等。Determines whether a provided DependencyObject is equivalent to the current DependencyObject.

(繼承來源 DependencyObject)
FindCommonVisualAncestor(DependencyObject)

傳回兩個視覺物件的共同祖系。Returns the common ancestor of two visual objects.

(繼承來源 Visual)
FindName(String)

尋找具有所提供之識別項名稱的項目。Finds an element that has the provided identifier name.

(繼承來源 FrameworkElement)
FindResource(Object)

以指定的索引鍵搜尋資源,如果找不到要求的資源時會擲回例外狀況。Searches for a resource with the specified key, and throws an exception if the requested resource is not found.

(繼承來源 FrameworkElement)
Focus()

嘗試將焦點設定至此項目。Attempts to set focus to this element.

(繼承來源 UIElement)
GetAnimationBaseValue(DependencyProperty)

傳回這個項目上指定屬性的基底屬性值,不管任何執行中的可能動畫值,或停止動畫。Returns the base property value for the specified property on this element, disregarding any possible animated value from a running or stopped animation.

(繼承來源 UIElement)
GetBindingExpression(DependencyProperty)

傳回 BindingExpression,代表指定屬性的繫結。Returns the BindingExpression that represents the binding on the specified property.

(繼承來源 FrameworkElement)
GetCharacterIndexFromLineIndex(Int32)

針對指定行中的第一個字元,傳回以零起始的字元索引。Returns the zero-based character index for the first character in the specified line.

GetCharacterIndexFromPoint(Point, Boolean)

傳回最靠近指定點之字元的索引 (以零起始)。Returns the zero-based index of the character that is closest to the specified point.

GetFirstVisibleLineIndex()

針對文字方塊中目前可看見的第一行,傳回行索引。Returns the line index for the first line that is currently visible in the text box.

GetHashCode()

取得這個 DependencyObject 的雜湊碼。Gets a hash code for this DependencyObject.

(繼承來源 DependencyObject)
GetLastVisibleLineIndex()

針對文字方塊中目前可看見的最後一行,傳回行索引。Returns the line index for the last line that is currently visible in the text box.

GetLayoutClip(Size)

傳回裁剪遮罩的幾何。Returns a geometry for a clipping mask. 如果配置系統嘗試排列大於可用顯示空間的項目,則會套用這個遮罩。The mask applies if the layout system attempts to arrange an element that is larger than the available display space.

(繼承來源 FrameworkElement)
GetLineIndexFromCharacterIndex(Int32)

針對包含所指定之字元索引的行,傳回以零起始的行索引。Returns the zero-based line index for the line that contains the specified character index.

GetLineLength(Int32)

傳回指定行中的字元數目。Returns the number of characters in the specified line.

GetLineText(Int32)

傳回目前顯示在指定行上的文字。Returns the text that is currently displayed on the specified line.

GetLocalValueEnumerator()

建立特定的列舉值,以判斷哪些相依性屬性在此 DependencyObject 上具有本機設定的值。Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.

(繼承來源 DependencyObject)
GetNextSpellingErrorCharacterIndex(Int32, LogicalDirection)

針對文字方塊內容中的下一個拼字錯誤,傳回開頭字元索引。Returns the beginning character index for the next spelling error in the contents of the text box.

GetRectFromCharacterIndex(Int32)

傳回位於所指定索引之字元前端邊緣的周框。Returns the rectangle for the leading edge of the character at the specified index.

GetRectFromCharacterIndex(Int32, Boolean)

傳回位於所指定索引之字元前端或尾端邊緣的周框。Returns the rectangle for the leading or trailing edge of the character at the specified index.

GetSpellingError(Int32)

傳回與指定字元索引處之任何拼字錯誤相關聯的 SpellingError 物件。Returns a SpellingError object associated with any spelling error at the specified character index.

GetSpellingErrorLength(Int32)

傳回包含所指定字元之任何拼字錯誤的長度。Returns the length of any spelling error that includes the specified character.

GetSpellingErrorStart(Int32)

針對包含指定字元的任何拼字錯誤,傳回開頭字元索引。Returns the beginning character index for any spelling error that includes the specified character.

GetTemplateChild(String)

傳回具現化 ControlTemplate 視覺化樹狀結構中的具名項目。Returns the named element in the visual tree of an instantiated ControlTemplate.

(繼承來源 FrameworkElement)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
GetUIParentCore()

如果沒有視覺父代,則傳回這個項目的替代邏輯父代。Returns an alternative logical parent for this element if there is no visual parent.

(繼承來源 FrameworkElement)
GetValue(DependencyProperty)

傳回 DependencyObject 的這個執行個體上之相依性屬性的目前有效值。Returns the current effective value of a dependency property on this instance of a DependencyObject.

(繼承來源 DependencyObject)
GetVisualChild(Int32)

覆寫 GetVisualChild(Int32),並從子項目集合傳回指定索引處的子系。Overrides GetVisualChild(Int32), and returns a child at the specified index from a collection of child elements.

(繼承來源 FrameworkElement)
HitTestCore(GeometryHitTestParameters)

實作 HitTestCore(GeometryHitTestParameters)以提供基底項目點擊測試行為 (傳回 GeometryHitTestResult)。Implements HitTestCore(GeometryHitTestParameters) to supply base element hit testing behavior (returning GeometryHitTestResult).

(繼承來源 UIElement)
HitTestCore(PointHitTestParameters)

實作 HitTestCore(PointHitTestParameters)以提供基底項目點擊測試行為 (傳回 HitTestResult)。Implements HitTestCore(PointHitTestParameters) to supply base element hit testing behavior (returning HitTestResult).

(繼承來源 UIElement)
InputHitTest(Point)

在目前項目範圍中傳回的輸入項目,輸入項目位在相對於目前項目原點的指定座標。Returns the input element within the current element that is at the specified coordinates, relative to the current element's origin.

(繼承來源 UIElement)
InvalidateArrange()

使項目的排列狀態 (配置) 失效。Invalidates the arrange state (layout) for the element. 失效之後,項目將更新其配置,而且,除非之後由 UpdateLayout() 強制執行,否則這項作業會以非同步方式發生。After the invalidation, the element will have its layout updated, which will occur asynchronously unless subsequently forced by UpdateLayout().

(繼承來源 UIElement)
InvalidateMeasure()

使項目的測量狀態 (配置) 失效。Invalidates the measurement state (layout) for the element.

(繼承來源 UIElement)
InvalidateProperty(DependencyProperty)

重新評估指定相依性屬性的有效值。Re-evaluates the effective value for the specified dependency property.

(繼承來源 DependencyObject)
InvalidateVisual()

讓項目的呈現失效,並強制全新的配置傳遞。Invalidates the rendering of the element, and forces a complete new layout pass. 完成配置循環之後,會呼叫 OnRender(DrawingContext)OnRender(DrawingContext) is called after the layout cycle is completed.

(繼承來源 UIElement)
IsAncestorOf(DependencyObject)

判斷視覺物件是否為子系視覺物件的祖系。Determines whether the visual object is an ancestor of the descendant visual object.

(繼承來源 Visual)
IsDescendantOf(DependencyObject)

判斷視覺物件是否為祖系視覺物件的子系。Determines whether the visual object is a descendant of the ancestor visual object.

(繼承來源 Visual)
LineDown()

以一行為單位向下捲動控制項的內容。Scrolls the contents of the control down by one line.

(繼承來源 TextBoxBase)
LineLeft()

以一行為單位向左捲動控制項的內容。Scrolls the contents of the control to the left by one line.

(繼承來源 TextBoxBase)
LineRight()

以一行為單位向右捲動控制項的內容。Scrolls the contents of the control to the right by one line.

(繼承來源 TextBoxBase)
LineUp()

以一行為單位向上捲動控制項的內容。Scrolls the contents of the control upward by one line.

(繼承來源 TextBoxBase)
LockCurrentUndoUnit()

鎖住應用程式復原堆疊中的最新復原單位。Locks the most recent undo unit of the undo stack of the application. 這可避免已鎖住的單位被後續加入的其他復原單位所合併。This prevents the locked unit from being merged with undo units that are added subsequently.

(繼承來源 TextBoxBase)
Measure(Size)

更新 UIElementDesiredSizeUpdates the DesiredSize of a UIElement. 父項目從本身的 MeasureCore(Size) 實作中呼叫此方法,以形成遞迴配置更新。Parent elements call this method from their own MeasureCore(Size) implementations to form a recursive layout update. 呼叫此方法即構成配置更新的第一次傳遞 (「量值」傳遞)。Calling this method constitutes the first pass (the "Measure" pass) of a layout update.

(繼承來源 UIElement)
MeasureCore(Size)

FrameworkElement 實作基本的測量傳遞配置系統行為。Implements basic measure-pass layout system behavior for FrameworkElement.

(繼承來源 FrameworkElement)
MeasureOverride(Size)

將文字方塊縮放為其內容大小。Sizes the text box to its content.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
MoveFocus(TraversalRequest)

以所提供的周遊方向,將鍵盤焦點從這個項目移到其他項目。Moves the keyboard focus away from this element and to another element in a provided traversal direction.

(繼承來源 FrameworkElement)
OnAccessKey(AccessKeyEventArgs)

當叫用對這個項目有意義的便捷鍵 (Access Key) 時,為其提供類別處理。Provides class handling for when an access key that is meaningful for this element is invoked.

(繼承來源 UIElement)
OnApplyTemplate()

在套用控制項樣板時呼叫。Is called when a control template is applied.

(繼承來源 TextBoxBase)
OnChildDesiredSizeChanged(UIElement)

會在調整子項目的大小時支援配置行為。Supports layout behavior when a child element is resized.

(繼承來源 UIElement)
OnContextMenuClosing(ContextMenuEventArgs)

當未處理的 ContextMenuClosing 路由事件到達其路由中的這個類別時,便會叫用此方法。Invoked whenever an unhandled ContextMenuClosing routed event reaches this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 FrameworkElement)
OnContextMenuOpening(ContextMenuEventArgs)

每當未處理的 ContextMenuOpening 路由事件達到其路由中的這個類別時呼叫。Called whenever an unhandled ContextMenuOpening routed event reaches this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnCreateAutomationPeer()

建立並傳回文字方塊的 AutomationPeer 物件。Creates and returns an AutomationPeer object for the text box.

OnDpiChanged(DpiScale, DpiScale)

當轉譯此 View 的 DPI 變更時呼叫。Called when the DPI at which this View is rendered changes.

(繼承來源 Visual)
OnDragEnter(DragEventArgs)

每當未處理的 DragEnter 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled DragEnter attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnDragLeave(DragEventArgs)

每當未處理的 DragLeave 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled DragLeave attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnDragOver(DragEventArgs)

每當未處理的 DragOver 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled DragOver attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnDrop(DragEventArgs)

每當未處理的 DragEnter 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled DragEnter attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnGiveFeedback(GiveFeedbackEventArgs)

每當未處理的 GiveFeedback 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled GiveFeedback attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnGotFocus(RoutedEventArgs)

當未處理的 GotFocus 事件到達其路由中的這個項目時,便會叫用此方法。Invoked whenever an unhandled GotFocus event reaches this element in its route.

(繼承來源 FrameworkElement)
OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

每當未處理的 GotKeyboardFocus 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled GotKeyboardFocus attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnGotMouseCapture(MouseEventArgs)

當未處理的 GotMouseCapture 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled GotMouseCapture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnGotStylusCapture(StylusEventArgs)

當未處理的 GotStylusCapture 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled GotStylusCapture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnGotTouchCapture(TouchEventArgs)

提供 GotTouchCapture 路由事件的類別處理,而這個事件會在擷取到對此項目的觸控時發生。Provides class handling for the GotTouchCapture routed event that occurs when a touch is captured to this element.

(繼承來源 UIElement)
OnInitialized(EventArgs)

引發 Initialized 事件。Raises the Initialized event. 每當 IsInitialized 在內部設為 true 便會叫用此方法。This method is invoked whenever IsInitialized is set to true internally.

(繼承來源 FrameworkElement)
OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs)

當這個項目上引發未處理的 IsKeyboardFocusedChanged 事件時叫用。Invoked when an unhandled IsKeyboardFocusedChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)

在此項目引發 IsKeyboardFocusWithinChanged 事件前叫用。Invoked just before the IsKeyboardFocusWithinChanged event is raised by this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs)

當這個項目上引發未處理的 IsMouseCapturedChanged 事件時叫用。Invoked when an unhandled IsMouseCapturedChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs)

當這個項目上引發未處理的 IsMouseCaptureWithinChanged 事件時叫用。Invoked when an unhandled IsMouseCaptureWithinChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs)

當這個項目上引發未處理的 IsMouseDirectlyOverChanged 事件時叫用。Invoked when an unhandled IsMouseDirectlyOverChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs)

當這個項目上引發未處理的 IsStylusCapturedChanged 事件時叫用。Invoked when an unhandled IsStylusCapturedChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs)

當這個項目上引發未處理的 IsStylusCaptureWithinChanged 事件時叫用。Invoked when an unhandled IsStylusCaptureWithinChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs)

當這個項目上引發未處理的 IsStylusDirectlyOverChanged 事件時叫用。Invoked when an unhandled IsStylusDirectlyOverChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnKeyDown(KeyEventArgs)

每當未處理的 KeyDown 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled KeyDown attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnKeyUp(KeyEventArgs)

每當未處理的 KeyUp 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled KeyUp attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnLostFocus(RoutedEventArgs)

使用所提供的引數,來引發 LostFocus 事件。Raises the LostFocus event (using the provided arguments).

(繼承來源 TextBoxBase)
OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)

每當未處理的 LostKeyboardFocus 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled LostKeyboardFocus attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnLostMouseCapture(MouseEventArgs)

當未處理的 LostMouseCapture 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled LostMouseCapture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnLostStylusCapture(StylusEventArgs)

當未處理的 LostStylusCapture 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled LostStylusCapture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnLostTouchCapture(TouchEventArgs)

提供 LostTouchCapture 路由事件的類別處理,而這個事件會在此項目失去觸控擷取時發生。Provides class handling for the LostTouchCapture routed event that occurs when this element loses a touch capture.

(繼承來源 UIElement)
OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs)

ManipulationBoundaryFeedback 事件發生時呼叫。Called when the ManipulationBoundaryFeedback event occurs.

(繼承來源 UIElement)
OnManipulationCompleted(ManipulationCompletedEventArgs)

ManipulationCompleted 事件發生時呼叫。Called when the ManipulationCompleted event occurs.

(繼承來源 UIElement)
OnManipulationDelta(ManipulationDeltaEventArgs)

ManipulationDelta 事件發生時呼叫。Called when the ManipulationDelta event occurs.

(繼承來源 UIElement)
OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs)

ManipulationInertiaStarting 事件發生時呼叫。Called when the ManipulationInertiaStarting event occurs.

(繼承來源 UIElement)
OnManipulationStarted(ManipulationStartedEventArgs)

ManipulationStarted 事件發生時呼叫。Called when the ManipulationStarted event occurs.

(繼承來源 UIElement)
OnManipulationStarting(ManipulationStartingEventArgs)

提供當第一次建立操作處理器時,所發生 ManipulationStarting 路由事件的類別處理。Provides class handling for the ManipulationStarting routed event that occurs when the manipulation processor is first created.

(繼承來源 UIElement)
OnMouseDoubleClick(MouseButtonEventArgs)

引發 MouseDoubleClick 路由事件。Raises the MouseDoubleClick routed event.

(繼承來源 Control)
OnMouseDown(MouseButtonEventArgs)

每當未處理的 MouseDown 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled MouseDown attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnMouseEnter(MouseEventArgs)

當這個項目上引發未處理的 MouseEnter 附加事件時叫用。Invoked when an unhandled MouseEnter attached event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnMouseLeave(MouseEventArgs)

當這個項目上引發未處理的 MouseLeave 附加事件時叫用。Invoked when an unhandled MouseLeave attached event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnMouseLeftButtonDown(MouseButtonEventArgs)

當這個項目上引發未處理的 MouseLeftButtonDown 路由事件時叫用。Invoked when an unhandled MouseLeftButtonDown routed event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnMouseLeftButtonUp(MouseButtonEventArgs)

當未處理的 MouseLeftButtonUp 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled MouseLeftButtonUp routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnMouseMove(MouseEventArgs)

每當未處理的 MouseMove 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled MouseMove attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnMouseRightButtonDown(MouseButtonEventArgs)

當未處理的 MouseRightButtonDown 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled MouseRightButtonDown routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnMouseRightButtonUp(MouseButtonEventArgs)

當未處理的 MouseRightButtonUp 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled MouseRightButtonUp routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnMouseUp(MouseButtonEventArgs)

當未處理的 MouseUp 事件到達衍生自其路由中這個類別的項目時,便會叫用此方法。Invoked whenever an unhandled MouseUp event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnMouseWheel(MouseWheelEventArgs)

MouseWheel 事件路由至此類別 (或繼承自此類別的另一類別) 時呼叫。Is called when a MouseWheel event is routed to this class (or to a class that inherits from this class).

(繼承來源 TextBoxBase)
OnPreviewDragEnter(DragEventArgs)

當未處理的 PreviewDragEnter 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewDragEnter attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewDragLeave(DragEventArgs)

當未處理的 PreviewDragLeave 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewDragLeave attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewDragOver(DragEventArgs)

當未處理的 PreviewDragOver 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewDragOver attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewDrop(DragEventArgs)

當未處理的 PreviewDrop 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewDrop attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewGiveFeedback(GiveFeedbackEventArgs)

當未處理的 PreviewGiveFeedback 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewGiveFeedback attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs)

當未處理的 PreviewGotKeyboardFocus 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewGotKeyboardFocus attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewKeyDown(KeyEventArgs)

KeyDown 發生時會呼叫。Called when the KeyDown occurs.

(繼承來源 TextBoxBase)
OnPreviewKeyUp(KeyEventArgs)

當未處理的 PreviewKeyUp 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewKeyUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs)

當未處理的 PreviewKeyDown 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewKeyDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewMouseDoubleClick(MouseButtonEventArgs)

引發 PreviewMouseDoubleClick 路由事件。Raises the PreviewMouseDoubleClick routed event.

(繼承來源 Control)
OnPreviewMouseDown(MouseButtonEventArgs)

當未處理的 PreviewMouseDown 附加路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseDown attached routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)

當未處理的 PreviewMouseLeftButtonDown 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseLeftButtonDown routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewMouseLeftButtonUp(MouseButtonEventArgs)

當未處理的 PreviewMouseLeftButtonUp 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseLeftButtonUp routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewMouseMove(MouseEventArgs)

當未處理的 PreviewMouseMove 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewMouseMove attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewMouseRightButtonDown(MouseButtonEventArgs)

當未處理的 PreviewMouseRightButtonDown 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseRightButtonDown routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewMouseRightButtonUp(MouseButtonEventArgs)

當未處理的 PreviewMouseRightButtonUp 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseRightButtonUp routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewMouseUp(MouseButtonEventArgs)

當未處理的 PreviewMouseUp 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewMouseWheel(MouseWheelEventArgs)

當未處理的 PreviewMouseWheel 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewMouseWheel attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewQueryContinueDrag(QueryContinueDragEventArgs)

當未處理的 PreviewQueryContinueDrag 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewQueryContinueDrag attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewStylusButtonDown(StylusButtonEventArgs)

當未處理的 PreviewStylusButtonDown 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusButtonDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewStylusButtonUp(StylusButtonEventArgs)

當未處理的 PreviewStylusButtonUp 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusButtonUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewStylusDown(StylusDownEventArgs)

當未處理的 PreviewStylusDown 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewStylusInAirMove(StylusEventArgs)

當未處理的 PreviewStylusInAirMove 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusInAirMove attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewStylusInRange(StylusEventArgs)

當未處理的 PreviewStylusInRange 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusInRange attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewStylusMove(StylusEventArgs)

當未處理的 PreviewStylusMove 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusMove attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewStylusOutOfRange(StylusEventArgs)

當未處理的 PreviewStylusOutOfRange 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusOutOfRange attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs)

當未處理的 PreviewStylusSystemGesture 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusSystemGesture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewStylusUp(StylusEventArgs)

當未處理的 PreviewStylusUp 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewTextInput(TextCompositionEventArgs)

當未處理的 PreviewTextInput 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewTextInput attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnPreviewTouchDown(TouchEventArgs)

提供 PreviewTouchDown 路由事件的類別處理,而這個事件會在觸控按下此項目時發生。Provides class handling for the PreviewTouchDown routed event that occurs when a touch presses this element.

(繼承來源 UIElement)
OnPreviewTouchMove(TouchEventArgs)

提供 PreviewTouchMove 路由事件的類別處理,而這個事件會在觸控尚處於此項目內並有所移動時發生。Provides class handling for the PreviewTouchMove routed event that occurs when a touch moves while inside this element.

(繼承來源 UIElement)
OnPreviewTouchUp(TouchEventArgs)

提供 PreviewTouchUp 路由事件的類別處理,而這個事件會在觸控於此項目內放開時發生。Provides class handling for the PreviewTouchUp routed event that occurs when a touch is released inside this element.

(繼承來源 UIElement)
OnPropertyChanged(DependencyPropertyChangedEventArgs)

當元素有一或多個相依性屬性變更了有效值時呼叫。Called when one or more of the dependency properties that exist on the element have had their effective values changed.

OnQueryContinueDrag(QueryContinueDragEventArgs)

每當未處理的 QueryContinueDrag 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled QueryContinueDrag attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnQueryCursor(QueryCursorEventArgs)

每當未處理的 QueryCursor 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled QueryCursor attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnRender(DrawingContext)

在衍生類別中覆寫時,參與由配置系統導向的呈現作業。When overridden in a derived class, participates in rendering operations that are directed by the layout system. 這個項目的呈現指令不會在叫用此方法時直接使用,而是會加以保留,以便稍後由配置和繪圖做非同步使用。The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.

(繼承來源 UIElement)
OnRenderSizeChanged(SizeChangedInfo)

使用指定的資訊作為最終事件資料的一部分,引發 SizeChanged 事件。Raises the SizeChanged event, using the specified information as part of the eventual event data.

(繼承來源 FrameworkElement)
OnSelectionChanged(RoutedEventArgs)

當插入號或目前選項的位置改變時呼叫。Is called when the caret or current selection changes position.

(繼承來源 TextBoxBase)
OnStyleChanged(Style, Style)

在這個項目上使用的樣式變更時叫用,如此將使配置失效。Invoked when the style in use on this element changes, which will invalidate the layout.

(繼承來源 FrameworkElement)
OnStylusButtonDown(StylusButtonEventArgs)

當未處理的 StylusButtonDown 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusButtonDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnStylusButtonUp(StylusButtonEventArgs)

當未處理的 StylusButtonUp 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusButtonUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnStylusDown(StylusDownEventArgs)

當未處理的 StylusDown 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnStylusEnter(StylusEventArgs)

當這個項目引發未處理的 StylusEnter 附加事件時叫用。Invoked when an unhandled StylusEnter attached event is raised by this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnStylusInAirMove(StylusEventArgs)

當未處理的 StylusInAirMove 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusInAirMove attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnStylusInRange(StylusEventArgs)

當未處理的 StylusInRange 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusInRange attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnStylusLeave(StylusEventArgs)

當這個項目引發未處理的 StylusLeave 附加事件時叫用。Invoked when an unhandled StylusLeave attached event is raised by this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnStylusMove(StylusEventArgs)

當未處理的 StylusMove 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusMove attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnStylusOutOfRange(StylusEventArgs)

當未處理的 StylusOutOfRange 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusOutOfRange attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnStylusSystemGesture(StylusSystemGestureEventArgs)

當未處理的 StylusSystemGesture 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusSystemGesture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnStylusUp(StylusEventArgs)

當未處理的 StylusUp 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 UIElement)
OnTemplateChanged(ControlTemplate, ControlTemplate)

在控制項樣板變更時呼叫。Is called when the control template changes.

(繼承來源 TextBoxBase)
OnTextChanged(TextChangedEventArgs)

當這個編輯控制項中的內容變更時呼叫。Is called when content in this editing control changes.

(繼承來源 TextBoxBase)
OnTextInput(TextCompositionEventArgs)

每當未處理的 TextInput 附加路由事件到達其路由中衍生自這個類別的項目時叫用。Invoked whenever an unhandled TextInput attached routed event reaches an element derived from this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 TextBoxBase)
OnToolTipClosing(ToolTipEventArgs)

當未處理的 ToolTipClosing 路由事件到達其路由中的這個類別時,便會叫用此方法。Invoked whenever an unhandled ToolTipClosing routed event reaches this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 FrameworkElement)
OnToolTipOpening(ToolTipEventArgs)

ToolTipOpening 路由事件到達其路由中的這個類別時,便會叫用此方法。Invoked whenever the ToolTipOpening routed event reaches this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(繼承來源 FrameworkElement)
OnTouchDown(TouchEventArgs)

提供 TouchDown 路由事件的類別處理,而這個事件會在觸控按下此項目內部時發生。Provides class handling for the TouchDown routed event that occurs when a touch presses inside this element.

(繼承來源 UIElement)
OnTouchEnter(TouchEventArgs)

提供 TouchEnter 路由事件的類別處理,而這個事件會在觸控從外面移至此項目範圍內時發生。Provides class handling for the TouchEnter routed event that occurs when a touch moves from outside to inside the bounds of this element.

(繼承來源 UIElement)
OnTouchLeave(TouchEventArgs)

提供 TouchLeave 路由事件的類別處理,而這個事件會在觸控輸入從此 UIElement 內移至其範圍外時發生。Provides class handling for the TouchLeave routed event that occurs when a touch moves from inside to outside the bounds of this UIElement.

(繼承來源 UIElement)
OnTouchMove(TouchEventArgs)

提供 TouchMove 路由事件的類別處理,而這個事件會在觸控尚處於此項目內並有所移動時發生。Provides class handling for the TouchMove routed event that occurs when a touch moves while inside this element.

(繼承來源 UIElement)
OnTouchUp(TouchEventArgs)

提供 TouchUp 路由事件的類別處理,而這個事件會在觸控於此項目內放開時發生。Provides class handling for the TouchUp routed event that occurs when a touch is released inside this element.

(繼承來源 UIElement)
OnVisualChildrenChanged(DependencyObject, DependencyObject)

當視覺物件的 VisualCollection 已修改時呼叫。Called when the VisualCollection of the visual object is modified.

(繼承來源 Visual)
OnVisualParentChanged(DependencyObject)

在視覺化樹狀結構中這個項目的父項目變更時叫用。Invoked when the parent of this element in the visual tree is changed. 覆寫 OnVisualParentChanged(DependencyObject)Overrides OnVisualParentChanged(DependencyObject).

(繼承來源 FrameworkElement)
PageDown()

以一頁為單位向下捲動控制項的內容。Scrolls the contents of the control down by one page.

(繼承來源 TextBoxBase)
PageLeft()

以一頁為單位向左捲動控制項的內容。Scrolls the contents of the control to the left by one page.

(繼承來源 TextBoxBase)
PageRight()

以一頁為單位向右捲動控制項的內容。Scrolls the contents of the control to the right by one page.

(繼承來源 TextBoxBase)
PageUp()

以一頁為單位向上捲動控制項的內容。Scrolls the contents of the control up by one page.

(繼承來源 TextBoxBase)
ParentLayoutInvalidated(UIElement)

FrameworkElement 的特定子類別中支援累加配置實作。Supports incremental layout implementations in specialized subclasses of FrameworkElement. ParentLayoutInvalidated(UIElement) 會在子項目使得屬性失效時叫用,該屬性在中繼資料內已標記,會在配置期間影響父代的測量或排列傳遞。ParentLayoutInvalidated(UIElement) is invoked when a child element has invalidated a property that is marked in metadata as affecting the parent's measure or arrange passes during layout.

(繼承來源 FrameworkElement)
Paste()

將剪貼簿內容貼到文字編輯控制項的目前選項上。Pastes the contents of the Clipboard over the current selection in the text editing control.

(繼承來源 TextBoxBase)
PointFromScreen(Point)

將螢幕座標中的 Point 轉換為 Point,表示 Visual 的目前座標系統。Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual.

(繼承來源 Visual)
PointToScreen(Point)

將表示 Point 之目前座標系統的 Visual 轉換為螢幕座標中的 PointConverts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates.

(繼承來源 Visual)
PredictFocus(FocusNavigationDirection)

決定下一個項目,該項目會針對所提供的焦點移動方向,接收相對於此項目的焦點,但是不會實際移動焦點。Determines the next element that would receive focus relative to this element for a provided focus movement direction, but does not actually move the focus.

(繼承來源 FrameworkElement)
RaiseEvent(RoutedEventArgs)

引發特定路由事件。Raises a specific routed event. 要引發的 RoutedEvent 是在所提供的 RoutedEventArgs 執行個體內識別 (作為該事件資料的 RoutedEvent 屬性)。The RoutedEvent to be raised is identified within the RoutedEventArgs instance that is provided (as the RoutedEvent property of that event data).

(繼承來源 UIElement)
ReadLocalValue(DependencyProperty)

傳回相依性屬性的區域值 (如果存在)。Returns the local value of a dependency property, if it exists.

(繼承來源 DependencyObject)
Redo()

復原最近一次的復原指令。Undoes the most recent undo command. 換句話說,重新執行復原堆疊上的最新復原單位。In other words, redoes the most recent undo unit on the undo stack.

(繼承來源 TextBoxBase)
RegisterName(String, Object)

提供可簡化對 NameScope 註冊方法之存取的存取子 (Accessor)。Provides an accessor that simplifies access to the NameScope registration method.

(繼承來源 FrameworkElement)
ReleaseAllTouchCaptures()

從這個項目釋放所有擷取到的觸控裝置。Releases all captured touch devices from this element.

(繼承來源 UIElement)
ReleaseMouseCapture()

如果這個項目保有滑鼠捕捉,則釋放捕捉。Releases the mouse capture, if this element held the capture.

(繼承來源 UIElement)
ReleaseStylusCapture()

如果這個項目保有手寫筆裝置捕捉,則釋放捕捉。Releases the stylus device capture, if this element held the capture.

(繼承來源 UIElement)
ReleaseTouchCapture(TouchDevice)

嘗試從這個項目中釋放指定的觸控裝置。Attempts to release the specified touch device from this element.

(繼承來源 UIElement)
RemoveHandler(RoutedEvent, Delegate)

從這個項目中移除指定的路由事件處理常式。Removes the specified routed event handler from this element.

(繼承來源 UIElement)
RemoveLogicalChild(Object)

從這個項目的邏輯樹狀結構中移除提供的物件。Removes the provided object from this element's logical tree. FrameworkElement 更新受影響的邏輯樹狀結構父指標,以便與刪除保持同步。FrameworkElement updates the affected logical tree parent pointers to keep in sync with this deletion.

(繼承來源 FrameworkElement)
RemoveVisualChild(Visual)

移除兩個視覺物件之間的父-子關係。Removes the parent-child relationship between two visuals.

(繼承來源 Visual)
ScrollToEnd()

將編輯控制項檢視畫面捲動至內容的尾端.Scrolls the view of the editing control to the end of the content.

(繼承來源 TextBoxBase)
ScrollToHome()

將編輯控制項檢視畫面捲動至檢視區的開頭.Scrolls the view of the editing control to the beginning of the viewport.

(繼承來源 TextBoxBase)
ScrollToHorizontalOffset(Double)

將編輯控制項內容捲動至指定水平位移。Scrolls the contents of the editing control to the specified horizontal offset.

(繼承來源 TextBoxBase)
ScrollToLine(Int32)

將指定行索引上的行捲動至檢視中。Scrolls the line at the specified line index into view.

ScrollToVerticalOffset(Double)

將編輯控制項內容捲動至指定垂直位移。Scrolls the contents of the editing control to the specified vertical offset.

(繼承來源 TextBoxBase)
Select(Int32, Int32)

在文字方塊中選取文字範圍。Selects a range of text in the text box.

SelectAll()

選取文字編輯控制項的所有內容。Selects all the contents of the text editing control.

(繼承來源 TextBoxBase)
SetBinding(DependencyProperty, BindingBase)

根據提供的繫結物件,將繫結附加至這個項目。Attaches a binding to this element, based on the provided binding object.

(繼承來源 FrameworkElement)
SetBinding(DependencyProperty, String)

根據提供給資料來源做為路徑限定性條件的來源屬性名稱,將繫結附加至這個項目。Attaches a binding to this element, based on the provided source property name as a path qualification to the data source.

(繼承來源 FrameworkElement)
SetCurrentValue(DependencyProperty, Object)

設定相依性屬性的值,而不需要變更其值來源。Sets the value of a dependency property without changing its value source.

(繼承來源 DependencyObject)
SetResourceReference(DependencyProperty, Object)

搜尋具有指定名稱的資源,並針對指定的屬性建立該資源的資源參考。Searches for a resource with the specified name and sets up a resource reference to it for the specified property.

(繼承來源 FrameworkElement)
SetValue(DependencyProperty, Object)

設定相依性屬性的區域值 (由相依性屬性的識別碼所指定)。Sets the local value of a dependency property, specified by its dependency property identifier.

(繼承來源 DependencyObject)
SetValue(DependencyPropertyKey, Object)

設定唯讀相依性屬性的區域數值 (由相依性屬性的 DependencyPropertyKey 識別項所指定)。Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.

(繼承來源 DependencyObject)
ShouldSerializeCommandBindings()

傳回序列化 (Serialization) 處理序是否應該在這個類別的執行個體上,將 CommandBindings 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the CommandBindings property on instances of this class.

(繼承來源 UIElement)
ShouldSerializeInputBindings()

傳回序列化 (Serialization) 處理序是否應該在這個類別的執行個體上,將 InputBindings 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the InputBindings property on instances of this class.

(繼承來源 UIElement)
ShouldSerializeProperty(DependencyProperty)

傳回值,這個值表示序列化程序是否應該序列化所提供相依性屬性的值。Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.

(繼承來源 DependencyObject)
ShouldSerializeResources()

傳回序列化 (Serialization) 處理序是否應該將 Resources 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the Resources property.

(繼承來源 FrameworkElement)
ShouldSerializeStyle()

傳回序列化 (Serialization) 處理序是否應該將 Style 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the Style property.

(繼承來源 FrameworkElement)
ShouldSerializeText(XamlDesignerSerializationManager)

傳回值,這個值表示 Text 屬性的有效值是否應該在 TextBox 物件的序列化期間予以序列化。Returns a value that indicates whether the effective value of the Text property should be serialized during serialization of the TextBox object.

ShouldSerializeTriggers()

傳回序列化 (Serialization) 處理序是否應該將 Triggers 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the Triggers property.

(繼承來源 FrameworkElement)
ToString()

傳回 Control 物件的字串表示。Returns the string representation of a Control object.

(繼承來源 Control)
TransformToAncestor(Visual)

傳回轉換,這個轉換可用來將 Visual 的座標轉換為視覺物件的指定 Visual 祖系。Returns a transform that can be used to transform coordinates from the Visual to the specified Visual ancestor of the visual object.

(繼承來源 Visual)
TransformToAncestor(Visual3D)

傳回轉換,這個轉換可用來將 Visual 的座標轉換為視覺物件的指定 Visual3D 祖系。Returns a transform that can be used to transform coordinates from the Visual to the specified Visual3D ancestor of the visual object.

(繼承來源 Visual)
TransformToDescendant(Visual)

傳回轉換,這個轉換可用來將 Visual 的座標轉換為指定的視覺物件子系。Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant.

(繼承來源 Visual)
TransformToVisual(Visual)

傳回轉換,這個轉換可用來將 Visual 的座標轉換為指定的視覺物件。Returns a transform that can be used to transform coordinates from the Visual to the specified visual object.

(繼承來源 Visual)
TranslatePoint(Point, UIElement)

將相對於這個項目的點轉換成相對於指定項目的座標。Translates a point relative to this element to coordinates that are relative to the specified element.

(繼承來源 UIElement)
TryFindResource(Object)

以指定的索引鍵搜尋資源;如果找到,則傳回該資源。Searches for a resource with the specified key, and returns that resource if found.

(繼承來源 FrameworkElement)
Undo()

復原最近一次的復原指令。Undoes the most recent undo command. 換句話說,將復原堆疊上的最新復原單位復原。In other words, undoes the most recent undo unit on the undo stack.

(繼承來源 TextBoxBase)
UnregisterName(String)

簡化對 NameScope 取消註冊方法的存取。Simplifies access to the NameScope de-registration method.

(繼承來源 FrameworkElement)
UpdateDefaultStyle()

重新將預設樣式套用至目前 FrameworkElementReapplies the default style to the current FrameworkElement.

(繼承來源 FrameworkElement)
UpdateLayout()

確認這個項目的所有視覺化子項目都已正確為配置而更新。Ensures that all visual child elements of this element are properly updated for layout.

(繼承來源 UIElement)
VerifyAccess()

請強制執行可以存取這個 DispatcherObject 的呼叫執行緒。Enforces that the calling thread has access to this DispatcherObject.

(繼承來源 DispatcherObject)

事件

ContextMenuClosing

在項目上的任何內容功能表正要關閉之前發生。Occurs just before any context menu on the element is closed.

(繼承來源 FrameworkElement)
ContextMenuOpening

當項目上的任何內容功能表開啟時發生。Occurs when any context menu on the element is opened.

(繼承來源 FrameworkElement)
DataContextChanged

這個項目的資料內容變更時發生。Occurs when the data context for this element changes.

(繼承來源 FrameworkElement)
DragEnter

輸入系統報告其下以此項目作為拖曳目標的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag target.

(繼承來源 UIElement)
DragLeave

輸入系統報告其下以此項目作為拖曳來源的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag origin.

(繼承來源 UIElement)
DragOver

在輸入系統回報以此項目作為可能置放目標的基礎拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the potential drop target.

(繼承來源 UIElement)
Drop

輸入系統報告其下以這個項目作為置放目標的置放事件時發生。Occurs when the input system reports an underlying drop event with this element as the drop target.

(繼承來源 UIElement)
FocusableChanged

發生於 Focusable 屬性的值變更時。Occurs when the value of the Focusable property changes.

(繼承來源 UIElement)
GiveFeedback

輸入系統報告其下牽涉此元素的拖放事件時發生。Occurs when the input system reports an underlying drag-and-drop event that involves this element.

(繼承來源 UIElement)
GotFocus

此元素取得邏輯焦點時發生。Occurs when this element gets logical focus.

(繼承來源 UIElement)
GotKeyboardFocus

鍵盤以此元素為焦點時發生。Occurs when the keyboard is focused on this element.

(繼承來源 UIElement)
GotMouseCapture

此元素擷取滑鼠時發生。Occurs when this element captures the mouse.

(繼承來源 UIElement)
GotStylusCapture

此元素擷取手寫筆時發生。Occurs when this element captures the stylus.

(繼承來源 UIElement)
GotTouchCapture

當觸控擷取至這個項目時發生。Occurs when a touch is captured to this element.

(繼承來源 UIElement)
Initialized

當這個 FrameworkElement 初始化時發生。Occurs when this FrameworkElement is initialized. 這個事件符合 IsInitialized 屬性值從 false (或未定義) 變更為 true 的案例。This event coincides with cases where the value of the IsInitialized property changes from false (or undefined) to true.

(繼承來源 FrameworkElement)
IsEnabledChanged

當這個項目的 IsEnabled 屬性值變更時發生。Occurs when the value of the IsEnabled property on this element changes.

(繼承來源 UIElement)
IsHitTestVisibleChanged

當這個項目的 IsHitTestVisible 相依性屬性值變更時發生。Occurs when the value of the IsHitTestVisible dependency property changes on this element.

(繼承來源 UIElement)
IsKeyboardFocusedChanged

當這個項目的 IsKeyboardFocused 屬性值變更時發生。Occurs when the value of the IsKeyboardFocused property changes on this element.

(繼承來源 UIElement)
IsKeyboardFocusWithinChanged

當這個項目的 IsKeyboardFocusWithin 屬性值變更時發生。Occurs when the value of the IsKeyboardFocusWithin property changes on this element.

(繼承來源 UIElement)
IsMouseCapturedChanged

當這個項目的 IsMouseCaptured 屬性值變更時發生。Occurs when the value of the IsMouseCaptured property changes on this element.

(繼承來源 UIElement)
IsMouseCaptureWithinChanged

當這個項目的 IsMouseCaptureWithinProperty 值變更時發生。Occurs when the value of the IsMouseCaptureWithinProperty changes on this element.

(繼承來源 UIElement)
IsMouseDirectlyOverChanged

當這個項目的 IsMouseDirectlyOver 屬性值變更時發生。Occurs when the value of the IsMouseDirectlyOver property changes on this element.

(繼承來源 UIElement)
IsStylusCapturedChanged

當這個項目的 IsStylusCaptured 屬性值變更時發生。Occurs when the value of the IsStylusCaptured property changes on this element.

(繼承來源 UIElement)
IsStylusCaptureWithinChanged

當這個項目的 IsStylusCaptureWithin 屬性值變更時發生。Occurs when the value of the IsStylusCaptureWithin property changes on this element.

(繼承來源 UIElement)
IsStylusDirectlyOverChanged

當這個項目的 IsStylusDirectlyOver 屬性值變更時發生。Occurs when the value of the IsStylusDirectlyOver property changes on this element.

(繼承來源 UIElement)
IsVisibleChanged

當這個項目的 IsVisible 屬性值變更時發生。Occurs when the value of the IsVisible property changes on this element.

(繼承來源 UIElement)
KeyDown

焦點在這個項目上方且按下按鍵時發生。Occurs when a key is pressed while focus is on this element.

(繼承來源 UIElement)
KeyUp

焦點在這個項目上方且放開按鍵時發生。Occurs when a key is released while focus is on this element.

(繼承來源 UIElement)
LayoutUpdated

當目前 Dispatcher 的數個關聯視覺化項目的配置變更時發生。Occurs when the layout of the various visual elements associated with the current Dispatcher changes.

(繼承來源 UIElement)
Loaded

當項目已配置版面、呈現以及可以互動時發生。Occurs when the element is laid out, rendered, and ready for interaction.

(繼承來源 FrameworkElement)
LostFocus

此元素失去邏輯焦點時發生。Occurs when this element loses logical focus.

(繼承來源 UIElement)
LostKeyboardFocus

鍵盤不再以此項目為焦點時發生。Occurs when the keyboard is no longer focused on this element,.

(繼承來源 UIElement)
LostMouseCapture

此元素失去滑鼠擷取時發生。Occurs when this element loses mouse capture.

(繼承來源 UIElement)
LostStylusCapture

此元素失去手寫筆擷取時發生。Occurs when this element loses stylus capture.

(繼承來源 UIElement)
LostTouchCapture

當這個項目失去觸控擷取時發生。Occurs when this element loses a touch capture.

(繼承來源 UIElement)
ManipulationBoundaryFeedback

當操作遇到界限時發生。Occurs when the manipulation encounters a boundary.

(繼承來源 UIElement)
ManipulationCompleted

當對 UIElement 物件進行的操作和慣性完成時發生。Occurs when a manipulation and inertia on the UIElement object is complete.

(繼承來源 UIElement)
ManipulationDelta

輸入裝置在操作期間變更位置時發生。Occurs when the input device changes position during a manipulation.

(繼承來源 UIElement)
ManipulationInertiaStarting

當輸入裝置在操作期間失去和 UIElement 物件的通訊以及慣性開始時發生。Occurs when the input device loses contact with the UIElement object during a manipulation and inertia begins.

(繼承來源 UIElement)
ManipulationStarted

當輸入裝置開始對 UIElement 物件進行操作時發生。Occurs when an input device begins a manipulation on the UIElement object.

(繼承來源 UIElement)
ManipulationStarting

發生於第一次建立操作處理器時。Occurs when the manipulation processor is first created.

(繼承來源 UIElement)
MouseDoubleClick

發生於按兩下或更多下滑鼠按鈕時。Occurs when a mouse button is clicked two or more times.

(繼承來源 Control)
MouseDown

指標在此元素上方且按下任何滑鼠按鈕時發生。Occurs when any mouse button is pressed while the pointer is over this element.

(繼承來源 UIElement)
MouseEnter

滑鼠指標進入此元素的邊界時發生。Occurs when the mouse pointer enters the bounds of this element.

(繼承來源 UIElement)
MouseLeave

滑鼠指標離開此元素的邊界時發生。Occurs when the mouse pointer leaves the bounds of this element.

(繼承來源 UIElement)
MouseLeftButtonDown

滑鼠指標在此元素上方且按下滑鼠左按鈕時發生。Occurs when the left mouse button is pressed while the mouse pointer is over this element.

(繼承來源 UIElement)
MouseLeftButtonUp

滑鼠指標在此元素上方且放開滑鼠左按鈕時發生。Occurs when the left mouse button is released while the mouse pointer is over this element.

(繼承來源 UIElement)
MouseMove

滑鼠指標在此元素上方移動時發生。Occurs when the mouse pointer moves while over this element.

(繼承來源 UIElement)
MouseRightButtonDown

滑鼠指標在此元素上方且按下滑鼠右按鈕時發生。Occurs when the right mouse button is pressed while the mouse pointer is over this element.

(繼承來源 UIElement)
MouseRightButtonUp

滑鼠指標在此元素上方且放開滑鼠右按鈕時發生。Occurs when the right mouse button is released while the mouse pointer is over this element.

(繼承來源 UIElement)
MouseUp

在此元素上方放開任何滑鼠按鈕時發生。Occurs when any mouse button is released over this element.

(繼承來源 UIElement)
MouseWheel

滑鼠指標在此元素上方且使用者滾動滑鼠滾輪時發生。Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.

(繼承來源 UIElement)
PreviewDragEnter

輸入系統報告其下以此項目作為拖曳目標的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag target.

(繼承來源 UIElement)
PreviewDragLeave

輸入系統報告其下以此項目作為拖曳來源的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag origin.

(繼承來源 UIElement)
PreviewDragOver

在輸入系統回報以此項目作為可能置放目標的基礎拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the potential drop target.

(繼承來源 UIElement)
PreviewDrop

輸入系統報告其下以這個項目作為置放目標的置放事件時發生。Occurs when the input system reports an underlying drop event with this element as the drop target.

(繼承來源 UIElement)
PreviewGiveFeedback

拖放操作開始時發生。Occurs when a drag-and-drop operation is started.

(繼承來源 UIElement)
PreviewGotKeyboardFocus

鍵盤以此元素為焦點時發生。Occurs when the keyboard is focused on this element.

(繼承來源 UIElement)
PreviewKeyDown

焦點在這個項目上方且按下按鍵時發生。Occurs when a key is pressed while focus is on this element.

(繼承來源 UIElement)
PreviewKeyUp

焦點在這個項目上方且放開按鍵時發生。Occurs when a key is released while focus is on this element.

(繼承來源 UIElement)
PreviewLostKeyboardFocus

鍵盤不再以此元素為焦點時發生。Occurs when the keyboard is no longer focused on this element.

(繼承來源 UIElement)
PreviewMouseDoubleClick

使用者按滑鼠按鈕超過兩下時發生。Occurs when a user clicks the mouse button two or more times.

(繼承來源 Control)
PreviewMouseDown

指標在此元素上方且按下任何滑鼠按鈕時發生。Occurs when any mouse button is pressed while the pointer is over this element.

(繼承來源 UIElement)
PreviewMouseLeftButtonDown

滑鼠指標在此元素上方且按下滑鼠左按鈕時發生。Occurs when the left mouse button is pressed while the mouse pointer is over this element.

(繼承來源 UIElement)
PreviewMouseLeftButtonUp

滑鼠指標在此元素上方且放開滑鼠左按鈕時發生。Occurs when the left mouse button is released while the mouse pointer is over this element.

(繼承來源 UIElement)
PreviewMouseMove

滑鼠指標在此元素上方且移動滑鼠指標時發生。Occurs when the mouse pointer moves while the mouse pointer is over this element.

(繼承來源 UIElement)
PreviewMouseRightButtonDown

滑鼠指標在此元素上方且按下滑鼠右按鈕時發生。Occurs when the right mouse button is pressed while the mouse pointer is over this element.

(繼承來源 UIElement)
PreviewMouseRightButtonUp

滑鼠指標在此元素上方且放開滑鼠右按鈕時發生。Occurs when the right mouse button is released while the mouse pointer is over this element.

(繼承來源 UIElement)
PreviewMouseUp

滑鼠指標在此元素上方且放開任何滑鼠按鈕時發生。Occurs when any mouse button is released while the mouse pointer is over this element.

(繼承來源 UIElement)
PreviewMouseWheel

滑鼠指標在此元素上方且使用者滾動滑鼠滾輪時發生。Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.

(繼承來源 UIElement)
PreviewQueryContinueDrag

拖放操作期間,鍵盤或滑鼠按鈕狀態變更時發生。Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.

(繼承來源 UIElement)
PreviewStylusButtonDown

手寫筆指標在此元素上方且按下手寫筆按鈕時發生。Occurs when the stylus button is pressed while the pointer is over this element.

(繼承來源 UIElement)
PreviewStylusButtonUp

手寫筆指標在此元素上方且放開手寫筆按鈕時發生。Occurs when the stylus button is released while the pointer is over this element.

(繼承來源 UIElement)
PreviewStylusDown

手寫筆在此項目上方且碰觸數位板時發生。Occurs when the stylus touches the digitizer while it is over this element.

(繼承來源 UIElement)
PreviewStylusInAirMove

手寫筆在項目上方移動,但沒有真正碰觸數位板時發生。Occurs when the stylus moves over an element without actually touching the digitizer.

(繼承來源 UIElement)
PreviewStylusInRange

手寫筆在此項目上方,且夠靠近數位板而被偵測到時發生。Occurs when the stylus is close enough to the digitizer to be detected, while over this element.

(繼承來源 UIElement)
PreviewStylusMove

手寫筆在項目上方移動時發生。Occurs when the stylus moves while over the element. 手寫筆必須在受到數位板偵測時移動才能引發此事件,否則會改為引發 PreviewStylusInAirMoveThe stylus must move while being detected by the digitizer to raise this event, otherwise, PreviewStylusInAirMove is raised instead.

(繼承來源 UIElement)
PreviewStylusOutOfRange

手寫筆遠離數位板而無法被偵測到時發生。Occurs when the stylus is too far from the digitizer to be detected.

(繼承來源 UIElement)
PreviewStylusSystemGesture

使用者執行其中一種手寫筆筆勢時發生。Occurs when a user performs one of several stylus gestures.

(繼承來源 UIElement)
PreviewStylusUp

手寫筆在此項目上方,且使用者將手寫筆舉起離開數位板時發生。Occurs when the user raises the stylus off the digitizer while the stylus is over this element.

(繼承來源 UIElement)
PreviewTextInput

此元素以一種與裝置無關的方式取得文字時發生。Occurs when this element gets text in a device-independent manner.

(繼承來源 UIElement)
PreviewTouchDown

手指在這個項目上方且在螢幕上觸控時發生。Occurs when a finger touches the screen while the finger is over this element.

(繼承來源 UIElement)
PreviewTouchMove

手指在這個項目上方且在螢幕上移動時發生。Occurs when a finger moves on the screen while the finger is over this element.

(繼承來源 UIElement)
PreviewTouchUp

手指在這個項目上方且離開螢幕時發生。Occurs when a finger is raised off of the screen while the finger is over this element.

(繼承來源 UIElement)
QueryContinueDrag

拖放操作期間,鍵盤或滑鼠按鈕狀態變更時發生。Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.

(繼承來源 UIElement)
QueryCursor

要求顯示游標時發生。Occurs when the cursor is requested to display. 每當滑鼠指標移動至新位置時,都會引發此事件,這意謂游標物件可能會根據其新位置而變更。This event is raised on an element each time that the mouse pointer moves to a new location, which means the cursor object might need to be changed based on its new position.

(繼承來源 UIElement)
RequestBringIntoView

在這個項目上呼叫 BringIntoView(Rect) 時發生。Occurs when BringIntoView(Rect) is called on this element.

(繼承來源 FrameworkElement)
SelectionChanged

文字選取變更時發生。Occurs when the text selection has changed.

(繼承來源 TextBoxBase)
SizeChanged

當這個項目的 ActualHeightActualWidth 屬性變更值時發生。Occurs when either the ActualHeight or the ActualWidth properties change value on this element.

(繼承來源 FrameworkElement)
SourceUpdated

來源值因與此項目繫結的任何現有屬性變更時發生。Occurs when the source value changes for any existing property binding on this element.

(繼承來源 FrameworkElement)
StylusButtonDown

手寫筆指標在此元素上方且按下手寫筆按鈕時發生。Occurs when the stylus button is pressed while the pointer is over this element.

(繼承來源 UIElement)
StylusButtonUp

手寫筆指標在此元素上方且放開手寫筆按鈕時發生。Occurs when the stylus button is released while the pointer is over this element.

(繼承來源 UIElement)
StylusDown

手寫筆在此項目上方且碰觸數位板時發生。Occurs when the stylus touches the digitizer while the stylus is over this element.

(繼承來源 UIElement)
StylusEnter

手寫筆進入此元素的邊界時發生。Occurs when the stylus enters the bounds of this element.

(繼承來源 UIElement)
StylusInAirMove

手寫筆在項目上方移動,但沒有真正碰觸數位板時發生。Occurs when the stylus moves over an element without actually touching the digitizer.

(繼承來源 UIElement)
StylusInRange

手寫筆在此項目上方,且夠靠近數位板而被偵測到時發生。Occurs when the stylus is close enough to the digitizer to be detected, while over this element.

(繼承來源 UIElement)
StylusLeave

手寫筆離開元素的邊界時發生。Occurs when the stylus leaves the bounds of the element.

(繼承來源 UIElement)
StylusMove

當手寫筆移至此項目上方時發生。Occurs when the stylus moves over this element. 手寫筆在數位板上必須移動才會引發這個事件。The stylus must move while on the digitizer to raise this event. 否則,會改為引發 StylusInAirMoveOtherwise, StylusInAirMove is raised instead.

(繼承來源 UIElement)
StylusOutOfRange

手寫筆在此項目上方,且遠離數位板而無法被偵測到時發生。Occurs when the stylus is too far from the digitizer to be detected, while over this element.

(繼承來源 UIElement)
StylusSystemGesture

使用者執行其中一種手寫筆筆勢時發生。Occurs when a user performs one of several stylus gestures.

(繼承來源 UIElement)
StylusUp

手寫筆在此項目上方,且使用者將手寫筆舉起離開數位板時發生。Occurs when the user raises the stylus off the digitizer while it is over this element.

(繼承來源 UIElement)
TargetUpdated

這個項目上的任何屬性繫結的目標值變更時發生。Occurs when the target value changes for any property binding on this element.

(繼承來源 FrameworkElement)
TextChanged

文字元素的內容變更時發生。Occurs when content changes in the text element.

(繼承來源 TextBoxBase)
TextInput

此元素以一種與裝置無關的方式取得文字時發生。Occurs when this element gets text in a device-independent manner.

(繼承來源 UIElement)
ToolTipClosing

在項目上的任何工具提示正要關閉之前發生。Occurs just before any tooltip on the element is closed.

(繼承來源 FrameworkElement)
ToolTipOpening

任何元素的工具提示開啟時發生。Occurs when any tooltip on the element is opened.

(繼承來源 FrameworkElement)
TouchDown

手指在這個項目上方且在螢幕上觸控時發生。Occurs when a finger touches the screen while the finger is over this element.

(繼承來源 UIElement)
TouchEnter

當觸控從這個項目的界限外部移至內部時發生。Occurs when a touch moves from outside to inside the bounds of this element.

(繼承來源 UIElement)
TouchLeave

當觸控從這個項目的界限內部移至外部時發生。Occurs when a touch moves from inside to outside the bounds of this element.

(繼承來源 UIElement)
TouchMove

手指在這個項目上方且在螢幕上移動時發生。Occurs when a finger moves on the screen while the finger is over this element.

(繼承來源 UIElement)
TouchUp

手指在這個項目上方且離開螢幕時發生。Occurs when a finger is raised off of the screen while the finger is over this element.

(繼承來源 UIElement)
Unloaded

當項目從已載入項目的項目樹狀結構中移除時發生。Occurs when the element is removed from within an element tree of loaded elements.

(繼承來源 FrameworkElement)

明確介面實作

IAddChild.AddChild(Object)

在所有情況下都擲回例外狀況 (Exception)。Throws an exception in all cases.

IAddChild.AddText(String)

將節點的文字內容加入物件中。Adds the text content of a node to the object.

IQueryAmbient.IsAmbientPropertyAvailable(String)

如需這個成員的描述,請參閱 IsAmbientPropertyAvailable(String) 方法。For a description of this member, see the IsAmbientPropertyAvailable(String) method.

(繼承來源 FrameworkElement)

適用於

另請參閱