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)

備註

消費者介面自動化提供者會使用此識別碼。 消費者介面自動化用戶端應用程式應該使用 中的 TextPattern 對等欄位。

適用於

另請參閱