TextPattern.TextSelectionChangedEvent 필드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
텍스트 선택 영역이 수정될 때 발생하는 이벤트를 식별합니다.
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
필드 값
예제
// Initialize a selection changed listener.
// The target selection is reflected in the client.
Automation.AddAutomationEventHandler(
TextPattern.TextSelectionChangedEvent,
targetDocument,
TreeScope.Element,
OnTextSelectionChange);
' Initialize a selection changed listener.
' The target selection is reflected in the client.
Dim onSelectionChanged As AutomationEventHandler = _
New AutomationEventHandler(AddressOf OnTextSelectionChange)
Automation.AddAutomationEventHandler( _
TextPattern.TextSelectionChangedEvent, targetDocument, _
TreeScope.Element, onSelectionChanged)
설명
일부 텍스트 컨트롤을 너비가 0 인 텍스트 선택 영역으로 텍스트 삽입 지점 (커서)를 처리 하 고 발생할 TextSelectionChangedEvent
커서를 이동 하는 경우.
참고
커서 이동을 따르기 위해 UI 자동화 클라이언트는 에 종속 TextSelectionChangedEvent되지 않고 해당 UI 자동화 요소 이벤트를 수신 대기하여 삽입 지점 변경 내용을 추적하는 것이 좋습니다.
UI 자동화 공급자의 해당 필드를 사용 해야 하는 UI 자동화 클라이언트 애플리케이션에서이 식별자는 TextPatternIdentifiers합니다.