TextChangedEventArgs 建構函式

定義

初始化 TextChangedEventArgs 類別的新執行個體。

多載

名稱 Description
TextChangedEventArgs(RoutedEvent, UndoAction)

初始化該類別的新實例 TextChangedEventArgs ,使用指定的事件 ID 並執行還原動作。

TextChangedEventArgs(RoutedEvent, UndoAction, ICollection<TextChange>)

初始化類別的新實例 TextChangedEventArgs ,使用指定的事件 ID、復原動作及文字變更。

TextChangedEventArgs(RoutedEvent, UndoAction)

初始化該類別的新實例 TextChangedEventArgs ,使用指定的事件 ID 並執行還原動作。

public:
 TextChangedEventArgs(System::Windows::RoutedEvent ^ id, System::Windows::Controls::UndoAction action);
public TextChangedEventArgs(System.Windows.RoutedEvent id, System.Windows.Controls.UndoAction action);
new System.Windows.Controls.TextChangedEventArgs : System.Windows.RoutedEvent * System.Windows.Controls.UndoAction -> System.Windows.Controls.TextChangedEventArgs
Public Sub New (id As RoutedEvent, action As UndoAction)

參數

id
RoutedEvent

事件識別碼(ID)。

action
UndoAction

這是 UndoAction 文字變更造成的。

適用於

TextChangedEventArgs(RoutedEvent, UndoAction, ICollection<TextChange>)

初始化類別的新實例 TextChangedEventArgs ,使用指定的事件 ID、復原動作及文字變更。

public:
 TextChangedEventArgs(System::Windows::RoutedEvent ^ id, System::Windows::Controls::UndoAction action, System::Collections::Generic::ICollection<System::Windows::Controls::TextChange ^> ^ changes);
public TextChangedEventArgs(System.Windows.RoutedEvent id, System.Windows.Controls.UndoAction action, System.Collections.Generic.ICollection<System.Windows.Controls.TextChange> changes);
new System.Windows.Controls.TextChangedEventArgs : System.Windows.RoutedEvent * System.Windows.Controls.UndoAction * System.Collections.Generic.ICollection<System.Windows.Controls.TextChange> -> System.Windows.Controls.TextChangedEventArgs
Public Sub New (id As RoutedEvent, action As UndoAction, changes As ICollection(Of TextChange))

參數

id
RoutedEvent

事件識別碼(ID)。

action
UndoAction

這是 UndoAction 文字變更造成的。

changes
ICollection<TextChange>

這場事件中發生的變化。 如需詳細資訊,請參閱Changes

備註

TextChangedEventArgs 於 .NET Framework 3.5 版本中引入。 欲了解更多資訊,請參閱 版本與相依關係。

適用於