TextCompositionEventArgs 類別

定義

包含與 TextComposition 變更關聯的引數。Contains arguments associated with changes to a TextComposition.

public ref class TextCompositionEventArgs : System::Windows::Input::InputEventArgs
public class TextCompositionEventArgs : System.Windows.Input.InputEventArgs
type TextCompositionEventArgs = class
    inherit InputEventArgs
Public Class TextCompositionEventArgs
Inherits InputEventArgs
繼承
TextCompositionEventArgs

備註

這個委派所支援的附加TextCompositionManager事件包括由類別提供, 並包含TextInput (PreviewTextInput)、 TextInputStart (PreviewTextInputStart) 和TextInputUpdate (PreviewTextInputUpdate)。Attached events supported by this delegate include are provided by the TextCompositionManager class, and include TextInput (PreviewTextInput), TextInputStart (PreviewTextInputStart), and TextInputUpdate (PreviewTextInputUpdate).

建構函式

TextCompositionEventArgs(InputDevice, TextComposition)

初始化 TextCompositionEventArgs 類別的新執行個體,並將指定的 InputDeviceTextComposition 做為類別的初始值。Initializes a new instance of the TextCompositionEventArgs class, taking a specified InputDevice and TextComposition as initial values for the class.

屬性

ControlText

取得與 TextComposition 事件關聯的控制項文字。Gets control text associated with a TextComposition event.

Device

取得初始化這個事件的輸入裝置。Gets the input device that initiated this event.

(繼承來源 InputEventArgs)
Handled

取得或設定值,這個值表示路由事件在傳送路由時之事件處理的目前狀態。Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.

(繼承來源 RoutedEventArgs)
OriginalSource

在父類別進行任何可能的 Source 調整之前,取得純點擊測試所判定的原始報告來源。Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.

(繼承來源 RoutedEventArgs)
RoutedEvent

取得或設定與這個 RoutedEventArgs 執行個體相關聯的 RoutedEventGets or sets the RoutedEvent associated with this RoutedEventArgs instance.

(繼承來源 RoutedEventArgs)
Source

取得或設定引發事件之物件的參考。Gets or sets a reference to the object that raised the event.

(繼承來源 RoutedEventArgs)
SystemText

取得與 TextComposition 事件關聯的系統文字。Gets system text associated with a TextComposition event.

Text

取得與 TextComposition 事件關聯的輸入文字。Gets input text associated with a TextComposition event.

TextComposition

取得與 TextComposition 事件關聯的 TextCompositionGets the TextComposition associated with a TextComposition event.

Timestamp

取得這個事件發生的時間。Gets the time when this event occurred.

(繼承來源 InputEventArgs)

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

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

(繼承來源 Object)
InvokeEventHandler(Delegate, Object)

以型別專屬的方式叫用事件處理常式,這樣做能夠提升事件系統的效率。Invokes event handlers in a type-specific way, which can increase event system efficiency.

MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
OnSetSource(Object)

在衍生類別中覆寫時,每當執行個體的 Source 屬性值變更,便會提供通知回呼進入點。When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes.

(繼承來源 RoutedEventArgs)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱