AccessibleEvents 列挙体
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Public Enumeration AccessibleEvents


オペレーティング システムとユーザー補助サーバー アプリケーションは、ユーザー インターフェイスの変更に応答して、ユーザー補助イベントを生成します。
この列挙体は、AccessibleObject および Control で使用されます。
ユーザー補助アプリケーションの詳細については、MSDN ライブラリの「Microsoft Active Accessibility」を参照してください。

ユーザー補助情報を公開する AccessibleObject クラスおよび Control.ControlAccessibleObject クラスを使用して、ユーザー補助対応のチャート コントロールを作成する方法の例を次に示します。コントロールは、凡例に沿って 2 つの曲線をプロットします。ControlAccessibleObject から派生された ChartControlAccessibleObject クラスは、チャート コントロールの独自のユーザー補助情報を提供することを目的として、CreateAccessibilityInstance メソッドで使用します。チャートの凡例は実際の Control ベースのコントロールではなく、チャート コントロールによって描画されるため、組み込みのユーザー補助情報は含まれていません。このため、ChartControlAccessibleObject クラスは、GetChild メソッドをオーバーライドして、凡例の各部分のユーザー補助情報を表す CurveLegendAccessibleObject を返します。ユーザー補助対応のアプリケーションでこのコントロールが使用された場合、このコントロールは必要なユーザー補助情報を提供できます。
AccessibilityNotifyClients メソッドで AccessibleEvents 列挙体を使用する例を次に示します。コード例全体については、AccessibleObject クラスの概要を参照してください。
' 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
// 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. 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. /** @property */ public Point get_Location() { return location; } //get_Location /** @property */ public void set_Location(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, ((CurveLegendAccessibleObject)get_AccessibilityObject()). get_ID()); } //set_Location // Gets or sets the Name for the curve legend. /** @property */ public String get_Name() { return name; } //get_Name /** @property */ public void set_Name(String value) { if (!name.Equals(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)get_AccessibilityObject()). get_ID()); } } //set_Name // Gets or sets the Selected state for the curve legend. /** @property */ public boolean get_Selected() { return selected; } //get_Selected /** @property */ public void set_Selected(boolean 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, ((CurveLegendAccessibleObject)get_AccessibilityObject()). get_ID()); } } //set_Selected

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


System.Windows.Forms 名前空間
AccessibleNavigation
AccessibleObject
AccessibleRole
AccessibleSelection
AccessibleStates
- AccessibleEvents 列挙体のページへのリンク