TextChangedEventArgs 构造函数

定义

初始化 TextChangedEventArgs 类的新实例。

重载

名称 说明
TextChangedEventArgs(RoutedEvent, UndoAction)

使用指定的事件 ID 和撤消操作初始化类的新实例 TextChangedEventArgs

TextChangedEventArgs(RoutedEvent, UndoAction, ICollection<TextChange>)

使用指定的事件 ID、撤消操作和文本更改初始化类的新实例 TextChangedEventArgs

TextChangedEventArgs(RoutedEvent, UndoAction)

使用指定的事件 ID 和撤消操作初始化类的新实例 TextChangedEventArgs

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>)

使用指定的事件 ID、撤消操作和文本更改初始化类的新实例 TextChangedEventArgs

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

注解

.NET Framework 版本 3.5 中引入了 TextChangedEventArgs。 有关详细信息,请参阅 版本和依赖项

适用于