語言

TextPatternIdentifiers.TextSelectionChangedEvent 欄位

定義

識別每當文字選擇被修改時所引發的事件。

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

欄位值

備註

有些文字控制項將文字插入點(游標)視為零寬度的文字選取,當游標移動時可能會凸起 TextSelectionChangedEvent 。

Note

為了追蹤游標移動,建議使用者介面自動化用戶端透過聆聽對應的使用者介面自動化元素事件來追蹤插入點的變化,而非依賴TextSelectionChangedEvent。

此識別碼由 使用者介面自動化 提供者使用。 用戶端應用程式應在 中使用等效欄位 TextPattern。

適用於

另請參閱