DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject Class
Assembly: System.Windows.Forms (in system.windows.forms.dll)
'Declaration Protected Class DataGridViewButtonCellAccessibleObject Inherits DataGridViewCellAccessibleObject 'Usage Dim instance As DataGridViewButtonCellAccessibleObject
protected class DataGridViewButtonCellAccessibleObject extends DataGridViewCellAccessibleObject
protected class DataGridViewButtonCellAccessibleObject extends DataGridViewCellAccessibleObject
Windows Forms includes built-in accessibility support that allows your application to work with accessibility client applications. Examples of accessibility client applications include screen enlarger and reviewer utilities, voice input utilities, on-screen keyboards, alternative input devices, and keyboard enhancement utilities.
The DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject class inherits from the AccessibleObject class to provide information about the DataGridViewButtonCell to accessibility client applications. Each class that represents a visual part of the DataGridView—such as DataGridViewColumnHeaderCell, DataGridViewRowHeaderCell, DataGridViewRow and DataGridViewCell—also contains a class that inherits from AccessibleObject to provide information about the containing class and perform actions on behalf of accessibility client applications.
There are instances when you will want to provide additional information, such as the name or description of the DataGridView control, to accessibility client applications. There are two ways of providing this additional information. To provide limited accessibility information for existing controls, set the control's AccessibleName and AccessibleDescription property values, which will be reported to accessibility client applications.
Note |
|---|
| You should change the AccessibleDefaultActionDescription and AccessibleRole property values only in rare situations, such as if you make a DataGridView look like a list. |
Occasionally, you might require more accessibility information or different accessibility actions to be included with your custom DataGridView or DataGridViewCell. To customize accessibility, you can write your own class that derives from the DataGridView.DataGridViewAccessibleObject or DataGridViewCell.DataGridViewCellAccessibleObject classes and override the CreateAccessibilityInstance method. For example, if you are writing a custom row header cell that implements unique custom actions, such as special hit testing within your cell, you should create a class that inherits from the DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject class and override the CreateAccessibilityInstance method.
The DataGridView exposes its data structure by using AccessibleRole values to define the data table hierarchy. For more information on exposing data tables to Microsoft Active Accessibility, see “Exposing Data Tables through Microsoft Active Accessibility” in the MSDN Library at http://msdn.microsoft.com/library.
System.MarshalByRefObject
System.Runtime.InteropServices.StandardOleMarshalObject
System.Windows.Forms.AccessibleObject
System.Windows.Forms.DataGridViewCell.DataGridViewCellAccessibleObject
System.Windows.Forms.DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject
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
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Reference
DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject MembersSystem.Windows.Forms Namespace
DataGridView Class
DataGridViewButtonCell Class
AccessibleObject Class
DataGridViewColumnHeaderCell
DataGridViewRowHeaderCell
DataGridViewRow
DataGridViewCell
Control.AccessibleName Property
Control.AccessibleDescription Property
Control.AccessibleDefaultActionDescription Property
Control.AccessibleRole Property
Control.CreateAccessibilityInstance
DataGridView.DataGridViewAccessibleObject Class
DataGridViewCell.DataGridViewCellAccessibleObject
DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject
DataGridViewRowHeaderCell.CreateAccessibilityInstance
AccessibleRole Enumeration
Note