TextPatternIdentifiers.TextChangedEvent 字段

定义

标识每当修改文本内容时引发的事件。

public: static initonly System::Windows::Automation::AutomationEvent ^ TextChangedEvent;
public static readonly System.Windows.Automation.AutomationEvent TextChangedEvent;
 staticval mutable TextChangedEvent : System.Windows.Automation.AutomationEvent
Public Shared ReadOnly TextChangedEvent As AutomationEvent 

字段值

AutomationEvent

示例

AutomationEventHandler ehTextChanged = new AutomationEventHandler(onTextChange);
Automation.AddAutomationEventHandler(TextPattern.TextChangedEvent, textProvider, TreeScope.Element, ehTextChanged);
Dim ehTextChanged As AutomationEventHandler = New AutomationEventHandler(AddressOf onTextChange)
System.Windows.Automation.Automation.AddAutomationEventHandler(TextPattern.TextChangedEvent, textProvider, TreeScope.Element, ehTextChanged)

注解

此标识符由UI 自动化提供程序使用。 UI 自动化客户端应用程序应使用等效字段。TextPattern

适用于

另请参阅