반응형

분류 전체보기 2946

[S/W 접근성] TreeWalker 메서드

4.2 TreeWalker 메서드 TreeWalker 클래스에서는 다양한 형태로 트리 구조에서 계층적으로 자동화 요소를 검색할 수 있는 메서드를 제공하고 있습니다. using System; using System.Windows.Automation; using System.Runtime.InteropServices; namespace 요소를_포함하는_윈도우_검색 { class Program { static void Main(string[] args) { AutomationElement ae = AutomationElement.FromHandle( WrapApi.GetDesktopWindow()); ListAE(ae, 0); } private static void ListAE(AutomationElement..

[S/W 접근성] TreeWalker 개체 참조

4.1 TreeWalker 개체 참조 TreeWalker 개체를 참조하는 방법에는 TreeWalker의 정적 필드를 통해 미리 제공하고 있는 TreeWalker 개체를 참조하는 방법과 원하는 조건을 인자로 새로운 TreeWalker 개체를 생성하는 방법이 있습니다.public static readonly TreeWalker RawViewWalker;public static readonly TreeWalker ControlViewWalker;public static readonly TreeWalker ContentViewWalker;publid TreeWalker(Condition condition); 이번에는 원하는 조건을 인자로 새로운 트리 개체를 생성하는 예를 살펴볼게요. 여기에서는 윈도우즈 패턴과 ..

반응형