AccessibleRole 열거형

정의

액세스 가능 개체의 가능한 역할을 나타내는 값을 지정합니다.

public enum class AccessibleRole
public enum AccessibleRole
type AccessibleRole = 
Public Enum AccessibleRole
상속
AccessibleRole

필드

Alert 8

사용자에게 알릴 수 있는 경고 또는 조건입니다. 메시지 상자, 그래픽, 텍스트 또는 사운드와 같은 다른 사용자 인터페이스 요소에 연결되지 않았지만 경고를 구체화하는 개체에 대해서만 이 역할을 사용합니다.

Animation 54

슬라이드 필름과 같이 연속된 비트맵 프레임을 표시하는 컨트롤처럼 시간 경과에 따라 변경되는 콘텐츠가 들어 있는 animation 컨트롤입니다. animation 컨트롤은 일반적으로 파일을 복사하거나 시간이 걸리는 작업을 수행할 때 표시됩니다.

Application 14

애플리케이션의 기본 창입니다.

Border 19

창의 테두리입니다. 각 가장자리를 별도의 개체로 나타내지 않고 전체 테두리를 단일 개체로 나타냅니다.

ButtonDropDown 56

드롭다운되어 항목 목록을 나타내는 단추입니다.

ButtonDropDownGrid 58

드롭다운되어 모눈을 나타내는 단추입니다.

ButtonMenu 57

드롭다운되어 메뉴를 나타내는 단추입니다.

Caret 7

창의 클라이언트 영역에서 삽입 지점의 위치를 표시하는 깜박거리는 선, 블록, 비트맵에 해당하는 캐럿입니다.

Cell 29

테이블 내의 셀입니다.

Character 32

Microsoft Office 길잡이와 같이 대개 애플리케이션의 사용자에게 도움말을 제공하기 위해 표시되는 만화 형식의 그래픽 개체입니다.

Chart 17

데이터를 나타내기 위해 사용하는 그래픽 이미지입니다.

CheckButton 44

다른 옵션과 관계 없이 설정 및 해제할 수 있는 옵션을 나타내는 check box 컨트롤입니다.

Client 10

창의 사용자 영역입니다.

Clock 61

시간을 표시하는 컨트롤입니다.

Column 27

테이블 내의 셀 열입니다.

ColumnHeader 25

테이블 열의 시각적 레이블을 제공하는 열 머리글입니다.

ComboBox 46

미리 정의된 일련의 선택 옵션을 제공하는 연관된 목록 상자가 있는 edit 컨트롤에 해당하는 콤보 상자입니다.

Cursor 6

마우스 포인터입니다.

Default -1

시스템이 제공한 역할입니다.

Diagram 53

데이터를 다이어그램으로 만드는 데 사용하는 그래픽 이미지입니다.

Dial 49

다이얼 또는 손잡이입니다. 속도계와 같은 읽기 전용 개체일 수 있습니다.

Dialog 18

대화 상자 또는 메시지 상자입니다.

Document 15

항상 애플리케이션 창에 포함되는 문서 창입니다. 이 역할은 MDI(다중 문서 인터페이스) 창에만 적용되며 MDI 제목 표시줄을 포함하는 개체를 나타냅니다.

DropList 47

드롭다운 목록 상자입니다. 이 컨트롤은 하나의 항목을 표시하며 다른 선택 옵션 목록에서 다른 항목을 표시한 후 선택할 수 있습니다.

Equation 55

수학 방정식입니다.

Graphic 40

그림입니다.

Grip 4

창과 같은 사용자 인터페이스 요소를 조작할 수 있는 특수한 마우스 포인터입니다. 예를 들어, 창의 오른쪽 아래 구석에 있는 크기 조정 그립을 클릭하고 끌어서 창의 크기를 조정할 수 있습니다.

Grouping 20

논리적 방법으로 그룹화된 개체입니다. 그룹화된 개체와 이 개체에 포함된 개체 사이에는 부모/자식 관계가 있을 수 있습니다.

HelpBalloon 31

클릭하여 사용자 지정 도움말 항목을 열 수 있는 단추 및 레이블이 들어 있는 도구 설명 또는 풍선 도움말 형태의 도움말 표시입니다.

HotkeyField 50

핫키로 사용할 수 있는 키 입력 조합이나 시퀀스를 입력할 수 있는 핫키 필드로, 작업을 빠르게 수행할 수 있습니다. hot-key 컨트롤은 사용자가 입력한 키 입력을 표시하며 사용자가 올바른 키조합을 선택할 수 있도록 합니다.

Indicator 39

포인터 그림과 같이 현재 항목을 가리키는 표시기입니다.

IpAddress 63

IP(인터넷 프로토콜) 주소 입력용 컨트롤입니다.

30

소스 문서와 대상 문서 간의 링크입니다. 이 개체는 텍스트나 그래픽처럼 보이지만 단추처럼 작동합니다.

List 33

하나 이상의 항목을 선택할 수 있는 목록 상자입니다.

ListItem 34

목록 상자의 항목 또는 콤보 상자, 드롭다운 목록 상자, 드롭다운 콤보 상자의 목록 부분에 있는 항목입니다.

MenuBar 2

일반적으로 창의 제목 표시줄 아래에 있으며 사용자가 메뉴를 선택할 수 있는 메뉴 표시줄입니다.

MenuItem 12

명령을 수행하거나, 옵션을 선택하거나, 다른 메뉴를 표시하는 등의 작업을 선택할 수 있는 메뉴 항목입니다. 메뉴 항목은 기능적으로 푸시 단추, 라디오 단추, 확인란 또는 메뉴와 같을 수 있습니다.

MenuPopup 11

동작을 수행하기 위해 선택할 수 있는 옵션 목록을 나타내는 메뉴입니다. 모든 메뉴 형식에는 메뉴 표시줄에서 선택하여 표시할 수 있는 드롭다운 메뉴, 마우스 오른쪽 단추를 클릭할 때 표시되는 바로 가기 메뉴와 함께 이 역할이 있어야 합니다.

None 0

역할이 없습니다.

Outline 35

tree view 컨트롤과 같이 계층적 목록을 표시하며 분기를 확장 및 축소할 수 있는 개요 또는 트리 구조입니다.

OutlineButton 64

개요 항목처럼 탐색하는 컨트롤입니다.

OutlineItem 36

개요 또는 트리 구조의 항목입니다.

PageTab 37

페이지의 제목처럼 홈 페이지인지 아닌지, 페이지가 수정되었는지 여부에 관계 없이 페이지의 특성을 볼 수 있는 속성 페이지입니다. 일반적으로 이 컨트롤의 자식만 관련된 페이지의 콘텐츠를 포함하는 그룹화된 개체가 될 수 있습니다.

PageTabList 60

page tab 컨트롤의 컨테이너입니다.

Pane 16

정보를 표시하기 위해 사용할 수 있는 프레임 내의 별도의 영역, 분할된 문서 창 또는 상태 표시줄의 사각형 영역입니다. 각 창 및 현재 창의 여러 콘텐츠를 탐색할 수 있지만 다른 창의 항목은 탐색할 수 없습니다. 따라서 창은 프레임 창 또는 문서보다는 낮지만 개별 컨트롤보다는 높은 수준으로 그룹화된 결과입니다. 일반적으로 컨텍스트에 따라 Tab, F6 또는 Ctrl+Tab을 눌러 창 사이를 탐색합니다.

ProgressBar 48

가로 사각형 내에 컬러 막대를 표시하여 시간이 걸리는 작업의 진행 상황을 나타내는 진행률 표시기입니다. 이 막대의 길이는 사각형 길이에 상대적으로 완료된 작업의 비율을 나타냅니다. 이 컨트롤에는 사용자 입력이 허용되지 않습니다.

PropertyPage 38

파일이나 리소스와 같은 개체의 모양과 동작을 제어하는 대화 상자를 나타내는 속성 페이지입니다. 속성 페이지의 모양은 용도에 따라 다릅니다.

PushButton 43

사용자가 설정 또는 해제할 수 있는 작은 사각형 컨트롤을 나타내는 push button 컨트롤입니다. 명령 단추라고도 하는 푸시 단추는 기본적으로 비활성 상태일 때는 볼록한 모양이고 활성 상태일 때는 오목한 모양입니다.

RadioButton 45

라디오 단추라고도 하는 옵션 단추입니다. 이 속성을 갖는 단일 부모를 공유하는 모든 개체는 단일 그룹에 속해 있으며 함께 사용할 수 없다고 가정됩니다. 필요한 경우 그룹화된 개체를 사용하여 옵션 단추를 별도의 그룹으로 나눌 수 있습니다.

Row 28

테이블 내의 셀 행입니다.

RowHeader 26

테이블 행의 시각적 레이블을 제공하는 행 머리글입니다.

ScrollBar 3

클라이언트 영역의 일부이거나 컨트롤에서 사용될 수 있는 세로 또는 가로 스크롤 막대입니다.

Separator 21

창 내에서 창을 분할하여 나누는 구분 메뉴 항목이나 구분선과 같이 시각적으로 두 개의 영역으로 구분된 공간입니다.

Slider 51

슬라이더를 이동시켜 설정을 최소값과 최대값 사이에서 지정된 단위로 조정할 수 있는 컨트롤로, 트랙 표시줄이라고도 합니다. Windows 운영 체제의 볼륨 컨트롤은 slider 컨트롤에 해당합니다.

Sound 5

다양한 시스템 이벤트에 연결되어 있는 시스템 사운드입니다.

SpinButton 52

up-down 컨트롤이라고도 하는 스핀 상자로, 두 개의 화살표 단추로 구성됩니다. 이 화살표 단추를 마우스로 클릭하여 값을 증분 또는 증감시킬 수 있습니다. 일반적으로 spin button 컨트롤은 현재 값이 표시되어 있는 버디 창이라는 컨트롤과 함께 사용합니다.

SplitButton 62

단추에 바로 인접한 드롭다운 목록 아이콘이 있는 도구 모음 단추입니다.

StaticText 41

대화 상자의 다른 컨트롤이나 설명 등에 사용하는 레이블과 같은 읽기 전용 텍스트입니다. 정적 텍스트는 수정하거나 선택할 수 없습니다.

StatusBar 23

일반적으로 애플리케이션 창 아래에 있는 영역으로 현재 작업, 애플리케이션 상태 또는 선택한 개체에 대한 정보를 표시하는 상태 표시줄입니다. 상태 표시줄에는 현재 선택한 메뉴 명령에 대한 설명과 같이 여러 다른 종류의 정보를 표시하는 여러 개의 필드가 있을 수 있습니다.

Table 24

셀의 행과 열, 선택적으로 행 머리글과 열 머리글이 들어 있는 테이블입니다.

Text 42

편집할 수 있거나 읽기 전용인 선택 가능한 텍스트입니다.

TitleBar 1

창의 제목 표시줄 또는 캡션 표시줄입니다.

ToolBar 22

자주 사용하는 기능에 쉽게 액세스할 수 있도록 하는 컨트롤 그룹인 도구 모음입니다.

ToolTip 13

단추의 용도를 간단한 설명하는 작은 사각형의 팝업 창을 나타내는 도구 설명입니다.

WhiteSpace 59

다른 여러 개체 사이의 빈 공간입니다.

Window 9

일반적으로 창에 포함되어 있는 제목 표시줄, 클라이언트 및 다른 개체와 같은 자식 개체를 포함하는 창 프레임입니다.

예제

다음 코드 예제에서는 내게 필요한 옵션 인식 차트를 만드는 방법을 보여 줍니다 컨트롤을 사용 하 여 AccessibleObjectControl.ControlAccessibleObject 액세스할 수 있는 정보를 노출 하는 클래스입니다. 컨트롤은 범례를 따라 두 곡선을 그립니다. 합니다 ChartControlAccessibleObject 클래스에서 파생 되는 ControlAccessibleObject에 사용 되는 CreateAccessibilityInstance 차트 컨트롤에 대 한 사용자 지정 액세스할 수 있는 정보를 제공 하는 방법입니다. 차트 범례 실제 아니므로 Control -컨트롤을 따르지만 그려지며 차트 컨트롤에 의해 액세스할 수 있는 기본 제공 정보를 포함 하지 않습니다. 이 인해 합니다 ChartControlAccessibleObject 재정의 클래스를 GetChild 반환 하는 방법은 CurveLegendAccessibleObject 범례의 각 부분에 액세스할 수 있는 정보를 나타내는입니다. 인식 액세스할 수 있는 애플리케이션에서이 컨트롤을 사용 하는 경우 컨트롤이 필요한 액세스할 수 있는 정보를 제공할 수 있습니다.

이 예제에서는 합니다 AccessibleRole 인 열거형을 Role 속성. 참조 된 AccessibleObject 전체 코드 예제에 대 한 클래스 개요입니다.

// Inner class ChartControlAccessibleObject represents accessible information associated with the ChartControl.
// The ChartControlAccessibleObject is returned in the ChartControl::CreateAccessibilityInstance .
ref class ChartControlAccessibleObject: public ControlAccessibleObject
{
private:
   ChartControl^ chartControl;

public:
   ChartControlAccessibleObject( ChartControl^ ctrl )
      : ControlAccessibleObject( ctrl )
   {
      chartControl = ctrl;
   }


   property System::Windows::Forms::AccessibleRole Role 
   {

      // Gets the role for the Chart. This is used by accessibility programs.
      virtual System::Windows::Forms::AccessibleRole get() override
      {
         return ::AccessibleRole::Chart;
      }

   }

   property AccessibleStates State 
   {

      // Gets the state for the Chart. This is used by accessibility programs.
      virtual AccessibleStates get() override
      {
         return AccessibleStates::ReadOnly;
      }

   }

   // The CurveLegend objects are "child" controls in terms of accessibility so
   // return the number of ChartLengend objects.
   virtual int GetChildCount() override
   {
      return chartControl->Legends->Length;
   }


   // Gets the Accessibility object of the child CurveLegend idetified by index.
   virtual AccessibleObject^ GetChild( int index ) override
   {
      if ( index >= 0 && index < chartControl->Legends->Length )
      {
         return chartControl->Legends[ index ]->AccessibilityObject;
      }

      return nullptr;
   }


internal:

   // Helper function that is used by the CurveLegend's accessibility object
   // to navigate between sibiling controls. Specifically, this function is used in
   // the CurveLegend::CurveLegendAccessibleObject.Navigate function.
   AccessibleObject^ NavigateFromChild( CurveLegend::CurveLegendAccessibleObject^ child, AccessibleNavigation navdir )
   {
      switch ( navdir )
      {
         case AccessibleNavigation::Down:
         case AccessibleNavigation::Next:
            return GetChild( child->ID + 1 );

         case AccessibleNavigation::Up:
         case AccessibleNavigation::Previous:
            return GetChild( child->ID - 1 );
      }
      return nullptr;
   }


   // Helper function that is used by the CurveLegend's accessibility object
   // to select a specific CurveLegend control. Specifically, this function is used
   // in the CurveLegend::CurveLegendAccessibleObject.Select function.
   void SelectChild( CurveLegend::CurveLegendAccessibleObject^ child, AccessibleSelection selection )
   {
      int childID = child->ID;
      
      // Determine which selection action should occur, based on the
      // AccessibleSelection value.
      if ( (selection & AccessibleSelection::TakeSelection) != (AccessibleSelection)0 )
      {
         for ( int i = 0; i < chartControl->Legends->Length; i++ )
         {
            if ( i == childID )
            {
               chartControl->Legends[ i ]->Selected = true;
            }
            else
            {
               chartControl->Legends[ i ]->Selected = false;
            }

         }
         
         // AccessibleSelection->AddSelection means that the CurveLegend will be selected.
         if ( (selection & AccessibleSelection::AddSelection) != (AccessibleSelection)0 )
         {
            chartControl->Legends[ childID ]->Selected = true;
         }
         
         // AccessibleSelection->AddSelection means that the CurveLegend will be unselected.
         if ( (selection & AccessibleSelection::RemoveSelection) != (AccessibleSelection)0 )
         {
            chartControl->Legends[ childID ]->Selected = false;
         }
      }
   }

};

// class ChartControlAccessibleObject
// Inner class ChartControlAccessibleObject represents accessible information associated with the ChartControl.
// The ChartControlAccessibleObject is returned in the ChartControl.CreateAccessibilityInstance override.
public class ChartControlAccessibleObject : ControlAccessibleObject
{
    ChartControl chartControl;

    public ChartControlAccessibleObject(ChartControl ctrl) : base(ctrl) 
    {
        chartControl = ctrl;
    }

    // Gets the role for the Chart. This is used by accessibility programs.
    public override AccessibleRole Role
    {  
        get {
            return AccessibleRole.Chart;
        }
    }

    // Gets the state for the Chart. This is used by accessibility programs.
    public override AccessibleStates State
    {  
        get {                    
            return AccessibleStates.ReadOnly;
        }
    }

    // The CurveLegend objects are "child" controls in terms of accessibility so 
    // return the number of ChartLengend objects.
    public override int GetChildCount()
    {  
        return chartControl.Legends.Length;
    }

    // Gets the Accessibility object of the child CurveLegend idetified by index.
    public override AccessibleObject GetChild(int index)
    {  
        if (index >= 0 && index < chartControl.Legends.Length) {
            return chartControl.Legends[index].AccessibilityObject;
        }                
        return null;
    }

    // Helper function that is used by the CurveLegend's accessibility object
    // to navigate between sibiling controls. Specifically, this function is used in
    // the CurveLegend.CurveLegendAccessibleObject.Navigate function.
    internal AccessibleObject NavigateFromChild(CurveLegend.CurveLegendAccessibleObject child, 
                                                AccessibleNavigation navdir) 
    {  
        switch(navdir) {
            case AccessibleNavigation.Down:
            case AccessibleNavigation.Next:
                return GetChild(child.ID + 1);
                
            case AccessibleNavigation.Up:
            case AccessibleNavigation.Previous:
                return GetChild(child.ID - 1);                        
        }
        return null;
    }

    // Helper function that is used by the CurveLegend's accessibility object
    // to select a specific CurveLegend control. Specifically, this function is used
    // in the CurveLegend.CurveLegendAccessibleObject.Select function.
    internal void SelectChild(CurveLegend.CurveLegendAccessibleObject child, AccessibleSelection selection) 
    {   
        int childID = child.ID;

        // Determine which selection action should occur, based on the
        // AccessibleSelection value.
        if ((selection & AccessibleSelection.TakeSelection) != 0) {
            for(int i = 0; i < chartControl.Legends.Length; i++) {
                if (i == childID) {
                    chartControl.Legends[i].Selected = true;                        
                } else {
                    chartControl.Legends[i].Selected = false;
                }
            }

            // AccessibleSelection.AddSelection means that the CurveLegend will be selected.
            if ((selection & AccessibleSelection.AddSelection) != 0) {
                chartControl.Legends[childID].Selected = true;                        
            }

            // AccessibleSelection.AddSelection means that the CurveLegend will be unselected.
            if ((selection & AccessibleSelection.RemoveSelection) != 0) {
                chartControl.Legends[childID].Selected = false;                        
            }
        }            
    }
}
' Inner Class ChartControlAccessibleObject represents accessible information 
' associated with the ChartControl.
' The ChartControlAccessibleObject is returned in the         ' ChartControl.CreateAccessibilityInstance override.
Public Class ChartControlAccessibleObject
    Inherits Control.ControlAccessibleObject

    Private chartControl As ChartControl
    
    Public Sub New(ctrl As ChartControl)
        MyBase.New(ctrl)
        chartControl = ctrl
    End Sub
    
    ' Get the role for the Chart. This is used by accessibility programs.            
    Public Overrides ReadOnly Property Role() As AccessibleRole
        Get
            Return System.Windows.Forms.AccessibleRole.Chart
        End Get
    End Property
    
    ' Get the state for the Chart. This is used by accessibility programs.            
    Public Overrides ReadOnly Property State() As AccessibleStates
        Get
            Return AccessibleStates.ReadOnly
        End Get
    End Property                        
    
    ' The CurveLegend objects are "child" controls in terms of accessibility so 
    ' return the number of ChartLengend objects.            
    Public Overrides Function GetChildCount() As Integer
        Return chartControl.Legends.Length
    End Function 
    
    ' Get the Accessibility object of the child CurveLegend idetified by index.
    Public Overrides Function GetChild(index As Integer) As AccessibleObject
        If index >= 0 And index < chartControl.Legends.Length Then
            Return chartControl.Legends(index).AccessibilityObject
        End If
        Return Nothing
    End Function 
    
    ' Helper function that is used by the CurveLegend's accessibility object
    ' to navigate between sibiling controls. Specifically, this function is used in
    ' the CurveLegend.CurveLegendAccessibleObject.Navigate function.
    Friend Function NavigateFromChild(child As CurveLegend.CurveLegendAccessibleObject, _
                                    navdir As AccessibleNavigation) As AccessibleObject
        Select Case navdir
            Case AccessibleNavigation.Down, AccessibleNavigation.Next
                    Return GetChild(child.ID + 1)
            
            Case AccessibleNavigation.Up, AccessibleNavigation.Previous
                    Return GetChild(child.ID - 1)
        End Select
        Return Nothing
    End Function            

    ' Helper function that is used by the CurveLegend's accessibility object
    ' to select a specific CurveLegend control. Specifically, this function is used 
    ' in the CurveLegend.CurveLegendAccessibleObject.Select function.            
    Friend Sub SelectChild(child As CurveLegend.CurveLegendAccessibleObject, selection As AccessibleSelection)
        Dim childID As Integer = child.ID
        
        ' Determine which selection action should occur, based on the
        ' AccessibleSelection value.
        If (selection And AccessibleSelection.TakeSelection) <> 0 Then
            Dim i As Integer
            For i = 0 To chartControl.Legends.Length - 1
                If i = childID Then
                    chartControl.Legends(i).Selected = True
                Else
                    chartControl.Legends(i).Selected = False
                End If
            Next i
            
            ' AccessibleSelection.AddSelection means that the CurveLegend will be selected.
            If (selection And AccessibleSelection.AddSelection) <> 0 Then
                chartControl.Legends(childID).Selected = True
            End If

            ' AccessibleSelection.AddSelection means that the CurveLegend will be unselected.                    
            If (selection And AccessibleSelection.RemoveSelection) <> 0 Then
                chartControl.Legends(childID).Selected = False
            End If
        End If
    End Sub
End Class

설명

개체의 역할 개체의 기능을 설명 하 고 액세스 가능성 애플리케이션에서 사용 됩니다.

이 열거형을 사용 하 여 AccessibleObjectControl.AccessibleRole

접근성 애플리케이션에 대 한 자세한 내용은 Microsoft MSDN (Developer Network) 라이브러리의 "Active Accessibility Microsoft"를 검색 합니다.

적용 대상

추가 정보