DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 DataGridViewButtonCell 的相关信息提供给具有辅助功能的客户端应用程序。
protected: ref class DataGridViewButtonCell::DataGridViewButtonCellAccessibleObject : System::Windows::Forms::DataGridViewCell::DataGridViewCellAccessibleObject
protected class DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject : System.Windows.Forms.DataGridViewCell.DataGridViewCellAccessibleObject
Protected Class DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject
Inherits DataGridViewCell.DataGridViewCellAccessibleObject
- 继承
-
DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject
注解
Windows 窗体包括内置的辅助功能支持,使应用程序能够使用辅助功能客户端应用程序。 辅助功能客户端应用程序的示例包括屏幕放大和审阅者实用工具、语音输入实用工具、屏幕键盘、备用输入设备和键盘增强实用工具。
该 DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject 类继承自 AccessibleObject 该类,以提供有关辅助功能客户端应用程序的信息 DataGridViewButtonCell 。 每个表示视觉部分的DataGridView类(例如DataGridViewColumnHeaderCell,DataGridViewRowHeaderCellDataGridViewRow和DataGridViewCell)还包含一个类,该类继承自AccessibleObject该类,以提供有关包含类的信息,并代表辅助功能客户端应用程序执行操作。
在某些情况下,需要向辅助功能客户端应用程序提供其他信息,例如控件的名称或说明 DataGridView 。 可通过两种方式提供此附加信息。 若要为现有控件提供有限的辅助功能信息,请设置控件的 AccessibleName 属性值 AccessibleDescription ,这些值将报告给辅助功能客户端应用程序。
备注
应仅在极少数情况下更改 AccessibleDefaultActionDescription 和 AccessibleRole 属性值,例如,如果看起来像 DataGridView 列表。
有时,可能需要更多辅助功能信息或自定义或DataGridViewCell不同的辅助功能操作。DataGridView 若要自定义辅助功能,可以编写派生自 DataGridView.DataGridViewAccessibleObject 或 DataGridViewCell.DataGridViewCellAccessibleObject 类并重写 CreateAccessibilityInstance 方法的自己的类。 例如,如果要编写实现唯一自定义操作的自定义行标题单元格,例如单元格中的特殊命中测试,则应创建一个继承自 DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject 类的类并重写 CreateAccessibilityInstance 该方法。
使用 DataGridView 值定义数据表层次结构来公开其数据结构 AccessibleRole 。 有关向 Microsoft Active 辅助功能公开数据表的详细信息,请参阅 通过 Microsoft Active Accessibility 公开数据表。
构造函数
DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject(DataGridViewCell) |
初始化 DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject 类的新实例。 |
属性
方法
显式接口实现
适用于
另请参阅
- DataGridView
- DataGridViewButtonCell
- AccessibleObject
- DataGridViewColumnHeaderCell
- DataGridViewRowHeaderCell
- DataGridViewRow
- DataGridViewCell
- AccessibleName
- AccessibleDescription
- AccessibleDefaultActionDescription
- AccessibleRole
- CreateAccessibilityInstance()
- DataGridView.DataGridViewAccessibleObject
- DataGridViewCell.DataGridViewCellAccessibleObject
- DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject
- CreateAccessibilityInstance()
- AccessibleRole