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. 作業系統為以下使用者介面項目傳送事件:插入號 (Caret)、標題控制項 (Header Control)、清單檢視控制項、索引標籤控制項 (Tab Control)、工具列控制項、樹狀檢視控制項、視窗物件。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 型別的事件會指示已設定 Invisible 的狀態。Events 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. 子視窗的 疊置順序變更時,父視窗也會傳送這個事件。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. 這樣比傳送數個 SelectionAddSelectionRemove 事件更好。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. 系統為以下使用者介面項目傳送這個事件:核取方塊、下拉式方塊、標題控制項、按鈕、選項按鈕、捲軸、工具列控制項、樹狀檢視控制項、上下按鈕控制項、視窗物件。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

視窗已失去滑鼠捕捉 (Mouse Capture)。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 事件:編輯控制項、標題控制項、熱鍵控制項、進度列控制項 (Progress Bar Control)、捲軸、滑桿 (Slider Control)、上下按鈕控制項。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方法,以提供針對 chart 控制項的自訂存取資訊。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.

如需有關協助工具應用程式的詳細資訊,請搜尋 MSDN Library 中的 「 Microsoft Active Accessibility"。For more information about the accessibility application, search for "Microsoft Active Accessibility" in the MSDN Library.

適用於

另請參閱