AccessibleStates AccessibleStates AccessibleStates AccessibleStates Enum

정의

액세스 가능 개체에 사용할 수 있는 상태를 나타내는 값을 지정합니다.Specifies values representing possible states for an accessible object.

이 열거형에는 멤버 값의 비트 조합을 허용하는 FlagsAttribute 특성이 있습니다.

public enum class AccessibleStates
[System.Flags]
public enum AccessibleStates
type AccessibleStates = 
Public Enum AccessibleStates
상속
AccessibleStatesAccessibleStatesAccessibleStatesAccessibleStates
특성

필드

AlertHigh AlertHigh AlertHigh AlertHigh 268435456

사용자에게 즉시 통보되어야 할 중요한 정보입니다.The important information that should be conveyed to the user immediately. 예를 들어, 배터리가 소모되어 위험한 상태가 되면 배터리 수준 표시기가 이 상태로 변경될 수 있습니다. 이 경우, 시각 장애인용 유틸리티는 해당 정보를 사용자에게 즉시 알릴 수 있으며 화면 확대 프로그램에서 화면을 스크롤하여 배터리 표시기를 표시할 수 있습니다.For example, a battery-level indicator reaching a critical low level would transition to this state, in which case, a blind access utility would announce this information immediately to the user, and a screen magnification program would scroll the screen so that the battery indicator is in view. 이 상태는 사용자가 계속하기 전에 완료되어야 하는 프롬프트나 작업에도 적합합니다.This state is also appropriate for any prompt or operation that must be completed before the user can continue.

AlertLow AlertLow AlertLow AlertLow 67108864

사용자에게 중요하지 않을 수 있는 우선 순위가 낮은 정보입니다.The low-priority information that might not be important to the user.

AlertMedium AlertMedium AlertMedium AlertMedium 134217728

사용자에게 즉시 전달될 필요가 없는 중요한 정보입니다.The important information that does not need to be conveyed to the user immediately. 예를 들어, 배터리 수준 표시기가 낮은 수준에 도달하기 시작하면 중간 수준의 경고가 발생될 수 있습니다.For example, when a battery-level indicator is starting to reach a low level, it could generate a medium-level alert. 시각 장애인용 유틸리티는 소리를 내 중요한 정보가 있다는 것을 알릴 수 있지만 실제로 사용자의 작업을 방해하지는 않습니다.Blind access utilities could then generate a sound to let the user know that important information is available, without actually interrupting the user's work. 따라서 사용자는 선택한 시간에 경고 정보를 확인할 수 있습니다.Users can then query the alert information any time they choose.

Animated Animated Animated Animated 16384

모양이 빠르게 변경되거나 계속 변경되는 개체입니다.The object that rapidly or constantly changes appearance. 경우에 따라 애니메이션되는 그래픽은 GraphicORAnimated로 정의되어야 합니다.Graphics that are occasionally animated, but not always, should be defined as GraphicORAnimated. 개체의 위치가 변경된다는 것을 나타내는 데 이 상태를 사용해서는 안 됩니다.This state should not be used to indicate that the object's location is changing.

Busy Busy Busy Busy 2048

현재 상태에서 입력을 받을 수 없는 컨트롤입니다.A control that cannot accept input in its current condition.

Checked Checked Checked Checked 16

선택된 상태의 확인란이 있는 개체입니다.An object with a selected check box.

Collapsed Collapsed Collapsed Collapsed 1024

개요 구조 또는 트리 구조에서 항목인 개체의 숨겨진 자식입니다.The hidden children of the object that are items in an outline or tree structure.

Default Default Default Default 256

기본 단추 또는 메뉴 항목입니다.The default button or menu item.

Expanded Expanded Expanded Expanded 512

개요 구조 또는 트리 구조에서 항목인 개체의 표시된 자식입니다.The displayed children of the object that are items in an outline or tree structure.

ExtSelectable ExtSelectable ExtSelectable ExtSelectable 33554432

키보드 포커스가 있는 개체인 선택 앵커와 이 개체 사이의 모든 개체의 선택 상태는 앵커 개체의 선택 상태를 따릅니다.The altered selection such that all objects between the selection anchor, which is the object with the keyboard focus, and this object take on the anchor object's selection state. 앵커 개체가 선택되어 있지 않으면 모든 개체가 선택에서 제거되지만If the anchor object is not selected, the objects are removed from the selection. 앵커 개체가 선택되어 있으면 이 개체를 포함한 사이에 있는 모든 개체가 선택됩니다.If the anchor object is selected, the selection is extended to include this object and all objects in between. 이 개체와 AddSelection 또는 RemoveSelection을 함께 사용하여 선택 상태를 설정할 수 있습니다.You can set the selection state by combining this with AddSelection or RemoveSelection. TakeFocus를 함께 사용하지 않는 한 이 상태로 인해 포커스나 앵커가 변경되지는 않습니다.This state does not change the focus or the selection anchor unless it is combined with TakeFocus.

Floating Floating Floating Floating 4096

부모 개체의 경계에 고정되지 않고 자동으로 부모 개체를 따라 이동되지 않는 개체입니다.The object that is not fixed to the boundary of its parent object and that does not move automatically along with the parent.

Focusable Focusable Focusable Focusable 1048576

키보드 포커스를 받을 수 있는 활성 창의 개체입니다.The object on the active window that can receive keyboard focus.

Focused Focused Focused Focused 4

키보드 포커스가 있는 개체입니다.An object with the keyboard focus.

HasPopup HasPopup HasPopup HasPopup 1073741824

개체를 호출하면 팝업 메뉴 또는 팝업 창이 표시됩니다.The object displays a pop-up menu or window when invoked.

HotTracked HotTracked HotTracked HotTracked 128

마우스 포인터가 개체 위에 있으면 개체가 강조 표시되어 마우스에 즉시 반응하는 개체입니다.The object hot-tracked by the mouse, meaning its appearance is highlighted to indicate the mouse pointer is located over it.

Indeterminate Indeterminate Indeterminate Indeterminate 32

상태를 결정할 수 없는 3상 확인란 또는 도구 모음 단추입니다.A three-state check box or toolbar button whose state is indeterminate. 확인란은 선택되거나 선택되지 않은 상태가 아니며 제 3의 상태이거나 혼합된 상태입니다.The check box is neither checked nor unchecked, and it is in the third or mixed state.

Invisible Invisible Invisible Invisible 32768

사용자에게 보이는 인터페이스가 없는 개체입니다.An object without a visible user interface.

Linked Linked Linked Linked 4194304

선택된 적이 없는 링크된 개체입니다.A linked object that has not been previously selected.

Marqueed Marqueed Marqueed Marqueed 8192

스크롤되거나 이동하는 텍스트나 그래픽이 있는 개체입니다.An object with scrolling or moving text or graphics.

Mixed Mixed Mixed Mixed 32

상태를 결정할 수 없는 3상 확인란 또는 도구 모음 단추입니다.A three-state check box or toolbar button whose state is indeterminate. 확인란은 선택되거나 선택되지 않은 상태가 아니며 제 3의 상태이거나 혼합된 상태입니다.The check box is neither checked nor unchecked, and it is in the third or mixed state.

Moveable Moveable Moveable Moveable 262144

이동할 수 있는 개체입니다.A movable object.

MultiSelectable MultiSelectable MultiSelectable MultiSelectable 16777216

선택된 여러 항목을 적용할 수 있는 개체입니다.An object that accepts multiple selected items.

None None None None 0

상태가 없습니다.No state.

Offscreen Offscreen Offscreen Offscreen 65536

화면 표시가 없습니다.No on-screen representation. 사운드 개체나 경고 개체 또는 표시될 수 없는 숨겨진 창이 이 상태가 될 수 있습니다.A sound or alert object would have this state, or a hidden window that is never made visible.

Pressed Pressed Pressed Pressed 8

눌려진 개체입니다.A pressed object.

Protected Protected Protected Protected 536870912

암호로 보호된 edit 컨트롤입니다.A password-protected edit control.

ReadOnly ReadOnly ReadOnly ReadOnly 64

읽기 전용 개체입니다.A read-only object.

Selectable Selectable Selectable Selectable 2097152

선택할 수 있는 개체입니다.An object that can accept selection.

Selected Selected Selected Selected 2

선택된 개체입니다.A selected object.

SelfVoicing SelfVoicing SelfVoicing SelfVoicing 524288

텍스트 음성 변환(TTS)을 사용하여 자신을 설명할 수 있는 개체나 자식 개체입니다.The object or child can use text-to-speech (TTS) to describe itself. 이런 상태의 개체에 포커스가 있으면 개체가 자동으로 정보를 알리기 때문에 내게 필요한 옵션의 음성 기반 보조 기능에서 정보를 알려서는 안됩니다.A speech-based accessibility aid should not announce information when an object with this state has the focus, because the object automatically announces information about itself.

Sizeable Sizeable Sizeable Sizeable 131072

크기를 조정할 수 있는 개체입니다.A sizable object.

Traversed Traversed Traversed Traversed 8388608

선택된 적이 있는 링크된 개체입니다.A linked object that has previously been selected.

Unavailable Unavailable Unavailable Unavailable 1

사용할 수 없는 개체입니다.An unavailable object.

Valid Valid Valid Valid 1073741823

올바른 개체입니다.A valid object. 이 속성은 .NET Framework 2.0.NET Framework 2.0에서 사용되지 않습니다.This property is deprecated in .NET Framework 2.0.NET Framework 2.0.

예제

다음 코드 예제에서는 내게 필요한 옵션 인식 차트를 만드는 방법을 보여 줍니다 컨트롤을 사용 하 여 AccessibleObjectControl.ControlAccessibleObject 액세스할 수 있는 정보를 노출 하는 클래스입니다.The following code example demonstrates the creation of an accessibility-aware chart control, using the AccessibleObject and Control.ControlAccessibleObject classes to expose accessible information. 컨트롤은 범례를 따라 두 곡선을 그립니다.The control plots two curves along with a legend. 합니다 ChartControlAccessibleObject 클래스에서 파생 되는 ControlAccessibleObject에 사용 되는 CreateAccessibilityInstance 차트 컨트롤에 대 한 사용자 지정 액세스할 수 있는 정보를 제공 하는 방법입니다.The ChartControlAccessibleObject class, which derives from ControlAccessibleObject, is used in the CreateAccessibilityInstance method to provide custom accessible information for the chart control. 차트 범례를 기반으로 하는 실제 컨트롤 아니므로 Control, 그려지며 하지만 차트 컨트롤에 의해 없습니다 액세스할 수 있는 기본 제공 정보입니다.Because the chart legend is not an actual control based on Control, but instead is drawn by the chart control, it does not contain any built-in accessible information. 이 인해 합니다 ChartControlAccessibleObject 재정의 클래스를 GetChild 반환 하는 방법은 CurveLegendAccessibleObject 범례의 각 부분에 액세스할 수 있는 정보를 나타내는입니다.Because of this, the ChartControlAccessibleObject class overrides the GetChild method to return the CurveLegendAccessibleObject that represents accessible information for each part of the legend. 인식 액세스할 수 있는 애플리케이션에서이 컨트롤을 사용 하는 경우 컨트롤이 필요한 액세스할 수 있는 정보를 제공할 수 있습니다.When an accessible-aware application uses this control, the control can provide the necessary accessible information.

이 코드 예제를 사용 하 여 보여 줍니다.는 AccessibleStates 인 열거형을 State 속성.This code excerpt demonstrates using the AccessibleStates enumeration with the State property. 참조 된 AccessibleObject 전체 코드 예제에 대 한 클래스 개요입니다.See the AccessibleObject class overview for the complete code example.

// 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 'New
    
    ' 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 'SelectChild
End Class 'ChartControlAccessibleObject

설명

액세스 가능한 개체는 이러한 상태 중 하나 이상을 사용 하 여 연결할 수 있습니다.An accessible object can be associated with one or more of these states.

접근성 애플리케이션에 대 한 자세한 내용은 "Microsoft Active Accessibility" Microsoft MSDN (Developer Network) library에서를 참조 하세요. http://msdn.microsoft.com/library합니다.For more information about the accessibility application, see "Microsoft Active Accessibility" in the Microsoft Developer Network (MSDN) library at http://msdn.microsoft.com/library.

적용 대상

추가 정보