AccessibleEvents AccessibleEvents AccessibleEvents AccessibleEvents Enum

定义

指定由辅助性应用程序报告的事件。Specifies events that are reported by accessible applications.

public enum class AccessibleEvents
public enum AccessibleEvents
type AccessibleEvents = 
Public Enum AccessibleEvents
继承
AccessibleEventsAccessibleEventsAccessibleEventsAccessibleEvents

字段

AcceleratorChange AcceleratorChange AcceleratorChange AcceleratorChange 32786

对象的 KeyboardShortcut 属性已更改。An object's KeyboardShortcut property changed. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send the event for their accessible objects.

Create Create Create Create 32768

对象已创建。An object was created. 操作系统为下列用户界面元素发送该事件:插入符号、标头控件、列表视图控件、选项卡控件、工具栏控件、树视图控件和窗口对象。The operating system sends the event for the following user interface elements: caret, header control, list view control, tab control, toolbar control, tree view control, and window object. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send this event for their accessible objects. 服务器必须在为父对象发送该对象之前为对象的所有子对象发送该事件。Servers must send this event for all an object's child objects before sending the event for the parent object. 服务器必须确保所有的子对象都已完全创建,并且已准备好在父对象发送事件时接受来自客户端的呼叫。Servers must ensure that all child objects are fully created and ready to accept calls from clients when the parent object sends the event.

DefaultActionChange DefaultActionChange DefaultActionChange DefaultActionChange 32785

对象的 DefaultAction 属性已更改。An object's DefaultAction property changed. 操作系统为对话框发送该事件。The system sends this event for dialog boxes. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send this event for their accessible objects. 因此,服务器应用程序不需要为子对象发送该事件。Therefore, server applications do not need to send this event for the child objects. 隐藏的对象具有状态 Invisible,而显示的对象没有此状态。Hidden objects have a state of Invisible, and shown objects do not. AccessibleEvents.Hide 类型的事件指示已设置了状态 InvisibleEvents of type AccessibleEvents.Hide indicate that a state of Invisible has been set. 因此,在这种情况下,服务器不需要发送 AccessibleEvents.StateChange 事件。Therefore, servers do not need to send the AccessibleEvents.StateChange event in this case.

DescriptionChange DescriptionChange DescriptionChange DescriptionChange 32781

对象的 Description 属性已更改。An object's Description property changed. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send this event for their accessible objects.

Destroy Destroy Destroy Destroy 32769

对象已损坏。An object was destroyed. 系统为下列用户界面元素发送该事件:插入符号、标头控件、列表视图控件、选项卡控件、工具栏控件、树视图控件和窗口对象。The system sends this event for the following user interface elements: caret, header control, list view control, tab control, toolbar control, tree view control, and window object. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send this event for their accessible objects. 可以为子对象发送或不发送该事件。This event may or may not be sent for child objects. 但是,当父对象发送该事件时,客户端可以得出结论,认为对象的所有子级都已损坏。However, clients can conclude that all the children of an object have been destroyed when the parent object sends this event.

Focus Focus Focus Focus 32773

对象已接收键盘焦点。An object has received the keyboard focus. 系统为下列用户界面元素发送该事件:列表视图控件、菜单栏、快捷菜单、切换窗口、选项卡控件、树视图控件和窗口对象。The system sends this event for the following user interface elements: list view control, menu bar, shortcut menu, switch window, tab control, tree view control, and window object. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send this event for their accessible objects.

HelpChange HelpChange HelpChange HelpChange 32784

对象的 Help 属性已更改。An object's Help property changed. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send this event for their accessible objects.

Hide Hide Hide Hide 32771

对象已隐藏。An object is hidden. 系统为下列用户界面元素发送该事件:插入符号和光标。The system sends the event for the following user interface elements: caret and cursor. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send the event for their accessible objects. 为父对象生成该事件时,所有子对象均已隐藏。When the event is generated for a parent object, all child objects have already been hidden. 因此,服务器应用程序不需要为子对象发送该事件。Therefore, server applications do not need to send the event for the child objects. 系统并不一贯发送该事件。The system does not send the event consistently.

LocationChange LocationChange LocationChange LocationChange 32779

对象已更改位置、形状和大小。An object has changed location, shape, or size. 系统为下列用户界面元素发送该事件:插入符号和窗口对象。The system sends this event for the following user interface elements: caret and window object. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send this event for their accessible objects. 该事件是为了响应对象层次结构中已更改的顶级对象(而不是为该对象可能包含的任何子对象)而生成的。This event is generated in response to the top-level object within the object hierarchy that has changed, not for any children it might contain. 例如,如果用户调整窗口的大小,系统就会为此窗口(而不是为菜单栏、标题栏、滚动条或其他同样已发生更改的对象)发送该通知。For example, if the user resizes a window, the system sends this notification for the window, but not for the menu bar, title bar, scroll bars, or other objects that have also changed. 当父窗口移动时,系统不会为所有非浮动子窗口发送该事件。The system does not send this event for every non-floating child window when the parent moves. 但是,如果应用程序调整大小的结果是显式调整了子窗口的大小,则系统就会为已调整大小的子窗口发送多个事件。However, if an application explicitly resizes child windows as a result of being resized, the system sends multiple events for the resized children. 如果对象的 State 属性设置为 Floating,则服务器应在对象每次更改位置时发送位置更改事件。If an object's State property is set to Floating, servers should send a location change event whenever the object changes location. 如果对象不具有此状态,则服务器应在该对象相对于其父对象发生移动时引发该事件。If an object does not have this state, servers should raise this event when the object moves relative to its parent.

NameChange NameChange NameChange NameChange 32780

对象的 Name 属性已更改。An object's Name property changed. 系统为下列用户界面元素发送该事件:复选框、光标、列表视图控件、下压按钮、单选按钮、状态栏控件、树视图控件和窗口对象。The system sends this event for the following user interface elements: check box, cursor, list view control, push button, radio button, status bar control, tree view control, and window object. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send this event for their accessible objects.

ParentChange ParentChange ParentChange ParentChange 32783

对象具有新的父对象。An object has a new parent object. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send this event for their accessible objects.

Reorder Reorder Reorder Reorder 32772

容器对象已添加、移除其子对象或对其子对象重新排序。A container object has added, removed, or reordered its children. 系统为下列用户界面元素发送该事件:标头控件、列表视图控件、工具栏控件和窗口对象。The system sends this event for the following user interface elements: header control, list view control, toolbar control, and window object. 服务器应用程序在适当的时候为它们的辅助性对象发送该事件。Server applications send this event as appropriate for their accessible objects. 当用于子窗口的 z 顺序更改时,父窗口也会发送该事件。This event is also sent by a parent window when the z order for the child windows changes.

Selection Selection Selection Selection 32774

容器对象内的辅助性对象已被选定。An accessible object within a container object has been selected. 该事件指示单个选择。This event signals a single selection. 或者是已在先前不包含任何选定对象的容器中选择了子级,或者是所选内容已从一个子级更改为另一个子级。Either a child has been selected in a container that previously did not contain any selected children, or the selection has changed from one child to another.

SelectionAdd SelectionAdd SelectionAdd SelectionAdd 32775

容器对象内的项已添至所选内容。An item within a container object was added to the selection. 系统为下列用户界面元素发送此事件:列表框、列表视图控件和树视图控件。The system sends this event for the following user interface elements: list box, list view control, and tree view control. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send this event for their accessible objects. 此事件指示子对象已添至现有的所选内容。This event signals that a child has been added to an existing selection.

SelectionRemove SelectionRemove SelectionRemove SelectionRemove 32776

容器对象内的项已从所选内容中移除。An item within a container object was removed from the selection. 系统为下列用户界面元素发送此事件:列表框、列表视图控件和树视图控件。The system sends this event for the following user interface elements: list box, list view control, and tree view control. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send this event for their accessible objects. 此事件指示子对象已从现有所选内容中移除。This event signals that a child has been removed from an existing selection.

SelectionWithin SelectionWithin SelectionWithin SelectionWithin 32777

容器对象中发生了多次选择内容更改。Numerous selection changes occurred within a container object. 系统为列表框发送此事件。The system sends this event for list boxes. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send this event for their accessible objects. 如果控件中的选定项已发生重大更改,则会发送此事件。This event can be sent when the selected items within a control have changed substantially. 此事件通知客户端已发生大量选择内容更改。This event informs the client that many selection changes have occurred. 最好发送若干 SelectionAdd 事件或 SelectionRemove 事件。This is preferable to sending several SelectionAdd or SelectionRemove events.

Show Show Show Show 32770

正在显示隐藏对象。A hidden object is being shown. 系统为下列用户界面元素发送此事件:插入符号、光标和窗口对象。The system sends this event for the following user interface elements: caret, cursor, and window object. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send this event for their accessible objects. 客户端可以得出结论:当事件由父对象发送时,所有子对象均已显示。Clients can conclude that, when this event is sent by a parent object, all child objects have already been displayed. 因此,服务器应用程序不需要为子对象发送该事件。Therefore, server applications do not need to send this event for the child objects.

StateChange StateChange StateChange StateChange 32778

对象的状态已更改。An object's state has changed. 系统为下列用户界面元素发送此事件:复选框、组合框、标头控件、下压按钮、单选按钮、滚动条、工具栏控件、树视图控件、up-down 控件和窗口对象。The system sends the event for the following user interface elements: check box, combo box, header control, push button, radio button, scroll bar, toolbar control, tree view control, up-down control, and window object. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send the event for their accessible objects. 例如,当已按下或松开按钮对象时,或者当正在启用或禁用对象时,可发生状态更改。For example, a state change can occur when a button object has been pressed or released, or when an object is being enabled or disabled. 系统并不一贯发送该事件。The system does not send the event consistently.

SystemAlert SystemAlert SystemAlert SystemAlert 2

警报已生成。An alert was generated. 每当发生重要的用户界面更改且用户可能需要知道这一更改发生时,服务器应用程序就会发送此事件。Server applications send this event whenever an important user interface change has occurred that a user might need to know about. 系统并不一贯为对话框对象发送该事件。The system does not send the event consistently for dialog box objects.

SystemCaptureEnd SystemCaptureEnd SystemCaptureEnd SystemCaptureEnd 9

窗口已丢失鼠标捕获。A window has lost mouse capture. 系统发送该事件;服务器从不发送该事件。The system sends the event; servers never send this event.

SystemCaptureStart SystemCaptureStart SystemCaptureStart SystemCaptureStart 8

正在移动窗口或调整窗口的大小。A window is being moved or resized. 系统发送该事件;服务器从不发送该事件。The system sends the event; servers never send this event.

SystemContextHelpEnd SystemContextHelpEnd SystemContextHelpEnd SystemContextHelpEnd 13

窗口退出了区分上下文的帮助模式。A window exited context-sensitive Help mode. 系统并不一贯发送该事件。The system does not send the event consistently.

SystemContextHelpStart SystemContextHelpStart SystemContextHelpStart SystemContextHelpStart 12

窗口进入了区分上下文的帮助模式。A window entered context-sensitive Help mode. 系统并不一贯发送该事件。The system does not send the event consistently.

SystemDialogEnd SystemDialogEnd SystemDialogEnd SystemDialogEnd 17

对话框已关闭。A dialog box was closed. 系统不为标准对话框发送该事件。The system does not send the event for standard dialog boxes. 服务器为自定义对话框发送该事件。Servers send this event for custom dialog boxes. 系统并不一贯发送该事件。The system does not send the event consistently.

SystemDialogStart SystemDialogStart SystemDialogStart SystemDialogStart 16

对话框已显示。A dialog box was displayed. 系统为标准对话框发送该事件。The system sends the event for standard dialog boxes. 服务器为自定义对话框发送该事件。Servers send this event for custom dialog boxes. 系统并不一贯发送该事件。The system does not send the event consistently.

SystemDragDropEnd SystemDragDropEnd SystemDragDropEnd SystemDragDropEnd 15

应用程序将退出拖放模式。An application is about to exit drag-and-drop mode. 支持拖放操作的应用程序必须发送该事件;系统不发送该事件。Applications that support drag-and-drop operations must send this event; the system does not.

SystemDragDropStart SystemDragDropStart SystemDragDropStart SystemDragDropStart 14

应用程序将进入拖放模式。An application is about to enter drag-and-drop mode. 支持拖放操作的应用程序必须发送该事件;系统不发送该事件。Applications that support drag-and-drop operations must send this event; the system does not.

SystemForeground SystemForeground SystemForeground SystemForeground 3

前景窗口已更改。The foreground window changed. 如果前景窗口更改为同一线程中的另一窗口,系统就会发送该事件。The system sends this event even if the foreground window is changed to another window in the same thread. 服务器应用程序从不发送该事件。Server applications never send this event.

SystemMenuEnd SystemMenuEnd SystemMenuEnd SystemMenuEnd 5

菜单栏中的菜单已关闭。A menu from the menu bar was closed. 系统为标准菜单发送该事件。The system sends this event for standard menus. 服务器为自定义菜单发送该事件。Servers send this event for custom menus.

SystemMenuPopupEnd SystemMenuPopupEnd SystemMenuPopupEnd SystemMenuPopupEnd 7

快捷菜单已关闭。A shortcut menu was closed. 系统为标准菜单发送该事件。The system sends this event for standard menus. 服务器为自定义菜单发送该事件。Servers send this event for custom menus. 当快捷菜单关闭时,客户端会收到此消息,其后紧接着是 SystemMenuEnd 事件。When a shortcut menu is closed, the client receives this message followed almost immediately by the SystemMenuEnd event. 系统并不一贯发送该事件。The system does not send the event consistently.

SystemMenuPopupStart SystemMenuPopupStart SystemMenuPopupStart SystemMenuPopupStart 6

快捷菜单已显示。A shortcut menu was displayed. 系统为标准菜单发送该事件。The system sends this event for standard menus. 服务器为自定义菜单发送该事件。Servers send this event for custom menus. 系统并不一贯发送该事件。The system does not send the event consistently.

SystemMenuStart SystemMenuStart SystemMenuStart SystemMenuStart 4

菜单栏上的菜单项已选定。A menu item on the menu bar was selected. 系统为标准菜单发送该事件。The system sends this event for standard menus. 服务器为自定义菜单发送该事件。Servers send this event for custom menus. 系统可能会引发多个 MenuStart 事件,这些事件可能有也可能没有对应的 MenuEnd 事件。The system might raise more than one MenuStart event that might or might not have a corresponding MenuEnd event.

SystemMinimizeEnd SystemMinimizeEnd SystemMinimizeEnd SystemMinimizeEnd 23

窗口对象已最小化或最大化。A window object was minimized or maximized. 系统发送该事件;服务器从不发送该事件。The system sends the event; servers never send this event.

SystemMinimizeStart SystemMinimizeStart SystemMinimizeStart SystemMinimizeStart 22

窗口对象将最小化或最大化。A window object is about to be minimized or maximized. 系统发送该事件;服务器从不发送该事件。The system sends the event; servers never send this event.

SystemMoveSizeEnd SystemMoveSizeEnd SystemMoveSizeEnd SystemMoveSizeEnd 11

已完成窗口的移动或大小调整。The movement or resizing of a window is finished. 系统发送该事件;服务器从不发送该事件。The system sends the event; servers never send this event.

SystemMoveSizeStart SystemMoveSizeStart SystemMoveSizeStart SystemMoveSizeStart 10

正在移动窗口或调整窗口的大小。A window is being moved or resized. 系统发送该事件;服务器从不发送该事件。The system sends the event; servers never send this event.

SystemScrollingEnd SystemScrollingEnd SystemScrollingEnd SystemScrollingEnd 19

滚动条上的滚动已经结束。Scrolling has ended on a scroll bar. 系统为窗口所附加的滚动条和标准滚动条控件发送该事件。The system sends this event for scroll bars attached to a window and for standard scroll bar controls. 服务器为自定义滚动条发送该事件。Servers send this event for custom scroll bars.

SystemScrollingStart SystemScrollingStart SystemScrollingStart SystemScrollingStart 18

滚动条上的滚动已经开始。Scrolling has started on a scroll bar. 系统为窗口附加的滚动条和标准滚动条控件发送该事件。The system sends the event for scroll bars attached to a window and for standard scroll bar controls. 服务器为自定义滚动条发送该事件。Servers send this event for custom scroll bars.

SystemSound SystemSound SystemSound SystemSound 1

声音已播放。A sound was played. 系统会在播放系统声音(例如用于菜单的声音)时发送该事件,即使听不到任何声音。The system sends this event when a system sound, such as for menus, is played, even if no sound is audible. 这有可能是由于缺少声音文件或声卡造成的。This might be caused by lack of a sound file or sound card. 如果自定义的用户界面元素生成声音,服务器将发送此事件。Servers send this event if a custom user interface element generates a sound.

SystemSwitchEnd SystemSwitchEnd SystemSwitchEnd SystemSwitchEnd 21

用户松开了 Alt+Tab 组合键。The user released ALT+TAB. 系统发送 SwitchEnd 事件;服务器从不发送该事件。The system sends the SwitchEnd event; servers never send this event. 如果当用户按下 Alt+Tab 组合键时只有一个应用程序在运行,系统就在没有对应的 SwitchEnd 事件的情况下发送 SwitchStart 事件。If only one application is running when the user presses ALT+TAB, the system sends the SwitchEnd event without a corresponding SwitchStart event.

SystemSwitchStart SystemSwitchStart SystemSwitchStart SystemSwitchStart 20

用户按下了激活切换窗口的 Alt+Tab 组合键。The user pressed ALT+TAB, which activates the switch window. 如果当用户按下 Alt+Tab 组合键时只有一个应用程序在运行,系统就在没有对应的 SwitchEnd 事件的情况下引发 SwitchStart 事件。If only one application is running when the user presses ALT+TAB, the system raises the SwitchEnd event without a corresponding SwitchStart event.

ValueChange ValueChange ValueChange ValueChange 32782

对象的 Value 属性已更改。An object's Value property changed. 系统为下列用户界面元素引发 ValueChange 事件:编辑控件、标头控件、热键控件、进度栏控件、滚动条、滑块控件和 up-down 控件。The system raises the ValueChange event for the following user interface elements: edit control, header control, hot key control, progress bar control, scroll bar, slider control, and up-down control. 服务器应用程序为它们的辅助性对象发送该事件。Server applications send this event for their accessible objects.

示例

下面的代码示例演示如何创建一个具有辅助功能的图表控件,并使用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 control, but instead is drawn by the chart control, it does not 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.

此示例演示如何使用AccessibleEvents枚举,其中AccessibilityNotifyClients方法。This example demonstrates using the AccessibleEvents enumeration with the AccessibilityNotifyClients method. 请参阅AccessibleObject完整的代码示例的类概述。See the AccessibleObject class overview for the complete code example.

   // Gets or sets the location for the curve legend.
   Point get()
   {
      return location;
   }

   void set( Point value )
   {
      location = value;
      chart->Invalidate();
      
      // Notifies the chart of the location change. This is used for
      // the accessibility information. AccessibleEvents::LocationChange
      // tells the chart the reason for the notification.
      chart->AccessibilityNotifyClients( AccessibleEvents::LocationChange, (dynamic_cast<CurveLegendAccessibleObject^>(AccessibilityObject))->ID );
   }

}

property String^ Name 
{

   // Gets or sets the Name for the curve legend.
   String^ get()
   {
      return name;
   }

   void set( String^ value )
   {
      if ( name != value )
      {
         name = value;
         chart->Invalidate();
         
         // Notifies the chart of the name change. This is used for
         // the accessibility information. AccessibleEvents::NameChange
         // tells the chart the reason for the notification.
         chart->AccessibilityNotifyClients( AccessibleEvents::NameChange, (dynamic_cast<CurveLegendAccessibleObject^>(AccessibilityObject))->ID );
      }
   }

}

property bool Selected 
{

   // Gets or sets the Selected state for the curve legend.
   bool get()
   {
      return selected;
   }

   void set( bool value )
   {
      if ( selected != value )
      {
         selected = value;
         chart->Invalidate();
         
         // Notifies the chart of the selection value change. This is used for
         // the accessibility information. The AccessibleEvents value depends upon
         // if the selection is true (AccessibleEvents::SelectionAdd) or
         // false (AccessibleEvents::SelectionRemove).
         chart->AccessibilityNotifyClients( selected ? AccessibleEvents::SelectionAdd : AccessibleEvents::SelectionRemove, (dynamic_cast<CurveLegendAccessibleObject^>(AccessibilityObject))->ID );
      }
   }
// Gets or sets the location for the curve legend.
public Point Location
{   
    get {
        return location;
    }
    set {
        location = value;
        chart.Invalidate();

        // Notifies the chart of the location change. This is used for
        // the accessibility information. AccessibleEvents.LocationChange
        // tells the chart the reason for the notification.

        chart.AccessibilityNotifyClients(AccessibleEvents.LocationChange, 
            ((CurveLegendAccessibleObject)AccessibilityObject).ID);
    }
}            

// Gets or sets the Name for the curve legend.
public string Name
{   
    get {
        return name;
    }
    set {
        if (name != value) 
        {
            name = value;
            chart.Invalidate();

            // Notifies the chart of the name change. This is used for
            // the accessibility information. AccessibleEvents.NameChange
            // tells the chart the reason for the notification.

            chart.AccessibilityNotifyClients(AccessibleEvents.NameChange, 
                ((CurveLegendAccessibleObject)AccessibilityObject).ID);
        }
    }
}

// Gets or sets the Selected state for the curve legend.
public bool Selected
{   
    get {
        return selected;
    }
    set {
        if (selected != value) 
        {
            selected = value;
            chart.Invalidate();

            // Notifies the chart of the selection value change. This is used for
            // the accessibility information. The AccessibleEvents value depends upon
            // if the selection is true (AccessibleEvents.SelectionAdd) or 
            // false (AccessibleEvents.SelectionRemove).
            chart.AccessibilityNotifyClients(
                selected ? AccessibleEvents.SelectionAdd : AccessibleEvents.SelectionRemove, 
                ((CurveLegendAccessibleObject)AccessibilityObject).ID);
        }
    }
}
' Gets or sets the location for the curve legend.            
Public Property Location() As Point
    Get
        Return m_location
    End Get
    Set
        m_location = value
        chart.Invalidate()

        ' Notifies the chart of the location change. This is used for
        ' the accessibility information. AccessibleEvents.LocationChange
        ' tells the chart the reason for the notification.
        chart.ExposeAccessibilityNotifyClients(AccessibleEvents.LocationChange, _
                CType(AccessibilityObject, CurveLegendAccessibleObject).ID)
    End Set
End Property

' Gets or sets the Name for the curve legend.            
Public Property Name() As String
    Get
        Return m_name
    End Get
    Set
        If m_name <> value Then
            m_name = value
            chart.Invalidate()

            ' Notifies the chart of the name change. This is used for
            ' the accessibility information. AccessibleEvents.NameChange
            ' tells the chart the reason for the notification. 
            chart.ExposeAccessibilityNotifyClients(AccessibleEvents.NameChange, _
                    CType(AccessibilityObject, CurveLegendAccessibleObject).ID)
        End If
    End Set
End Property

' Gets or sets the Selected state for the curve legend.            
Public Property Selected() As Boolean
    Get
        Return m_selected
    End Get
    Set
        If m_selected <> value Then
            m_selected = value
            chart.Invalidate()

            ' Notifies the chart of the selection value change. This is used for
            ' the accessibility information. The AccessibleEvents value varies
            ' on whether the selection is true (AccessibleEvents.SelectionAdd) or 
            ' false (AccessibleEvents.SelectionRemove). 
            If m_selected Then
                chart.ExposeAccessibilityNotifyClients(AccessibleEvents.SelectionAdd, _
                        CType(AccessibilityObject, CurveLegendAccessibleObject).ID) 
            Else
                chart.ExposeAccessibilityNotifyClients(AccessibleEvents.SelectionRemove, _
                        CType(AccessibilityObject, CurveLegendAccessibleObject).ID) 
            End If
        End If
    End Set
End Property

注解

操作系统和可访问性服务器应用程序生成可访问性事件,以响应用户界面中的更改。The operating system and accessibility server applications generate accessibility events in response to changes in the user interface.

此枚举由AccessibleObjectControlThis enumeration is used by AccessibleObject and Control.

有关辅助功能应用程序的详细信息,搜索"Microsoft Active Accessibility"MSDN 库中。For more information about the accessibility application, search for "Microsoft Active Accessibility" in the MSDN Library.

适用于

另请参阅