AutomationElement.AutomationElementInformation 구조체

정의

Cached 또는 Current 속성에서 사용하는 속성 접근자를 포함합니다.

public: value class AutomationElement::AutomationElementInformation
public struct AutomationElement.AutomationElementInformation
type AutomationElement.AutomationElementInformation = struct
Public Structure AutomationElement.AutomationElementInformation
상속
AutomationElement.AutomationElementInformation

예제

다음 예제와 방법을 Name 이 구조에서 속성을 검색 합니다.

/// <summary>
/// Handles ElementSelected events by showing a message.
/// </summary>
/// <param name="src">Object that raised the event; in this case, a list item.</param>
/// <param name="e">Event arguments.</param>
private void OnSelect(object src, AutomationEventArgs e)
{
    // Get the name of the item, which is equivalent to its text.
    AutomationElement element = src as AutomationElement;
    if (element != null)
    {
        Console.WriteLine(element.Current.Name + " was selected.");
    }
}
''' <summary>
''' Handles ElementSelected events by showing a message.
''' </summary>
''' <param name="src">Object that raised the event; in this case, a list item.</param>
''' <param name="e">Event arguments.</param>
Private Sub OnSelect(ByVal src As Object, ByVal e As AutomationEventArgs)
    ' Get the name of the item, which is equivalent to its text.
    Dim element As AutomationElement = DirectCast(src, AutomationElement)
    If (element IsNot Nothing) Then
        Console.WriteLine(element.Current.Name + " was selected.")
    End If

End Sub

설명

속성에서 직접 액세스할 수 있습니다 Cached 하 고 Current; 검색할 필요가 없습니다를 AutomationElement.AutomationElementInformation 자체 구조체입니다.

이 구조의 속성을 사용 하 여 검색할 수도 있습니다 GetCurrentPropertyValue 하 고 GetCachedPropertyValue, 해당 식별자를 사용 하 여 AutomationElement입니다. 예를 들어 합니다 AutomationElement.AutomationElementInformation.AcceleratorKey 속성으로 식별 되는 AutomationElement.AcceleratorKeyProperty 필드입니다. 개별 속성에 대 한 자세한 내용은 해당 식별자;에 대 한 참조 페이지의 수 각 참조 항목의 설명 섹션의 링크를 참조 하세요.

속성

AcceleratorKey

요소의 액셀러레이터 키 조합이 들어 있는 문자열을 가져옵니다.

AccessKey

요소의 선택키 문자가 들어 있는 문자열을 가져옵니다.

AutomationId

요소의 UI 자동화 식별자(ID)를 포함하는 문자열을 가져옵니다.

BoundingRectangle

요소를 완전히 둘러싸는 사각형의 좌표를 가져옵니다.

ClassName

컨트롤 개발자가 할당한 요소의 클래스 이름이 들어 있는 문자열을 가져옵니다.

ControlType

요소의 ControlType을 가져옵니다.

FrameworkId

내부 UI 프레임워크의 이름을 가져옵니다.

HasKeyboardFocus

요소에 키보드 포커스가 있는지 여부를 나타내는 값을 가져옵니다.

HelpText

요소에 연결된 도움말 텍스트를 가져옵니다.

IsContentElement

요소가 콘텐츠 요소인지 여부를 지정하는 값을 가져옵니다.

IsControlElement

요소가 컨트롤로 표시되는지 여부를 나타내는 값을 가져옵니다.

IsEnabled

UI 자동화 요소에서 참조하는 UI(사용자 인터페이스) 항목을 사용할 수 있는지 여부를 나타내는 값을 가져옵니다.

IsKeyboardFocusable

UI 자동화 요소가 키보드 포커스를 허용할 수 있는지 여부를 나타내는 값을 가져옵니다.

IsOffscreen

UI 자동화 요소가 화면에 표시되는지 여부를 나타내는 값을 가져옵니다.

IsPassword

UI 자동화 요소에 보호된 콘텐츠가 포함되어 있는지 여부를 나타내는 값을 가져옵니다.

IsRequiredForForm

양식에서 UI 자동화 요소를 작성해야 하는지 여부를 나타내는 값을 가져옵니다.

ItemStatus

요소 내의 항목 상태에 대한 설명을 가져옵니다.

ItemType

항목의 형식에 대한 설명을 가져옵니다.

LabeledBy

이 요소의 텍스트 레이블이 들어 있는 요소를 가져옵니다.

LocalizedControlType

컨트롤 형식에 대한 설명을 가져옵니다.

Name

요소의 이름을 가져옵니다.

NativeWindowHandle

요소의 창 핸들을 가져옵니다.

Orientation

컨트롤의 방향을 가져옵니다.

ProcessId

이 요소의 프로세스 식별자(ID)를 가져옵니다.

적용 대상

추가 정보