DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject 类

定义

DataGridViewLinkCell 控件的相关信息提供给具有辅助功能的客户端应用程序。

protected: ref class DataGridViewLinkCell::DataGridViewLinkCellAccessibleObject : System::Windows::Forms::DataGridViewCell::DataGridViewCellAccessibleObject
protected class DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject : System.Windows.Forms.DataGridViewCell.DataGridViewCellAccessibleObject
Protected Class DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject
Inherits DataGridViewCell.DataGridViewCellAccessibleObject
继承

注解

Windows 窗体包括内置的辅助功能支持,使应用程序能够使用辅助功能客户端应用程序。 辅助功能客户端应用程序的示例包括屏幕放大和审阅者实用工具、语音输入实用工具、屏幕键盘、备用输入设备和键盘增强实用工具。

DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject 类继承自 AccessibleObject 该类,以提供有关辅助功能客户端应用程序的信息 DataGridViewLinkCell 。 每个表示视觉部分的DataGridView类(例如DataGridViewColumnHeaderCellDataGridViewRowHeaderCellDataGridViewRowDataGridViewCell)还包含一个类,该类继承自AccessibleObject该类,以提供有关包含类的信息,并代表辅助功能客户端应用程序执行操作。

在某些情况下,需要向辅助功能客户端应用程序提供其他信息,例如控件的名称或说明 DataGridView 。 可通过两种方式提供此附加信息。 若要为现有控件提供有限的辅助功能信息,请设置控件的 AccessibleName 属性值 AccessibleDescription ,这些值将报告给辅助功能客户端应用程序。

备注

应仅在极少数情况下更改 AccessibleDefaultActionDescriptionAccessibleRole 属性值,例如,如果看起来像 DataGridView 列表。

有时,可能需要更多辅助功能信息或自定义或DataGridViewCell不同的辅助功能操作。DataGridView 若要自定义辅助功能,可以编写派生自 DataGridView.DataGridViewAccessibleObjectDataGridViewCell.DataGridViewCellAccessibleObject 类并重写 CreateAccessibilityInstance 方法的自己的类。 例如,如果要编写实现唯一自定义操作的自定义行标题单元格,例如单元格中的特殊命中测试,则应创建一个继承自 DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject 类的类并重写 CreateAccessibilityInstance 该方法。

使用 DataGridView 值定义数据表层次结构来公开其数据结构 AccessibleRole 。 有关向 Microsoft Active 辅助功能公开数据表的详细信息,请参阅 通过 Microsoft Active Accessibility 公开数据表

构造函数

DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject(DataGridViewCell)

初始化 DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject 类的新实例。

属性

Bounds

获取辅助性对象的位置和大小。

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
DefaultAction

获取表示 DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject 的默认操作的字符串。

Description

获取说明指定对象可视外观的字符串。 并非所有对象都有说明。

(继承自 AccessibleObject)
Help

获取所属单元格类型和基类型的名称。

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
KeyboardShortcut

获取辅助性对象的快捷键或访问键。

(继承自 AccessibleObject)
Name

获取 DataGridViewCell.DataGridViewCellAccessibleObject 的名称。

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
Owner

获取或设置拥有 DataGridViewCell.DataGridViewCellAccessibleObject 的单元格。

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
Parent

获取 DataGridViewCell.DataGridViewCellAccessibleObject 的父级。

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
Role

获取 DataGridViewCell.DataGridViewCellAccessibleObject 的角色。

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
State

获取 DataGridViewCell.DataGridViewCellAccessibleObject 的状态。

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
Value

获取或设置一个字符串,该字符串表示所属单元格的格式化值。

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)

方法

CreateObjRef(Type)

创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。

(继承自 MarshalByRefObject)
DoDefaultAction()

执行 DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject 的默认操作。

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetChild(Int32)

获取对应于指定索引的辅助性对象。

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
GetChildCount()

获取属于 DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject 的可访问子对象的数量。

GetFocused()

返回拥有键盘焦点的子级辅助性对象。

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetHelpTopic(String)

获取帮助主题标识符及与该辅助性对象相关的帮助文件的路径。

(继承自 AccessibleObject)
GetLifetimeService()
已过时。

检索控制此实例的生存期策略的当前生存期服务对象。

(继承自 MarshalByRefObject)
GetSelected()

返回当前选择的子级辅助性对象。

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
GetType()

获取当前实例的 Type

(继承自 Object)
HitTest(Int32, Int32)

检索位于指定屏幕坐标的子对象。

(继承自 AccessibleObject)
InitializeLifetimeService()
已过时。

获取生存期服务对象来控制此实例的生存期策略。

(继承自 MarshalByRefObject)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。

(继承自 MarshalByRefObject)
Navigate(AccessibleNavigation)

定位到另一个辅助性对象。

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
RaiseAutomationNotification(AutomationNotificationKind, AutomationNotificationProcessing, String)

引发 UI 自动化通知事件。

(继承自 AccessibleObject)
RaiseLiveRegionChanged()

引发 LiveRegionChanged UI 自动化事件。

(继承自 AccessibleObject)
Select(AccessibleSelection)

修改选择内容或移动辅助性对象的键盘焦点。

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
ToString()

返回表示当前对象的字符串。

(继承自 Object)
UseStdAccessibleObjects(IntPtr)

根据对象的句柄,将一个对象与 AccessibleObject 的一个实例关联起来。

(继承自 AccessibleObject)
UseStdAccessibleObjects(IntPtr, Int32)

根据对象的句柄和对象 ID,将一个对象与 AccessibleObject 的一个实例关联起来。

(继承自 AccessibleObject)

显式接口实现

IAccessible.accChildCount

获取属于该对象的子接口的数量。 有关此成员的说明,请参见 accChildCount

(继承自 AccessibleObject)
IAccessible.accDoDefaultAction(Object)

执行指定对象的默认操作。 并非所有对象都有默认操作。 有关此成员的说明,请参见 accDoDefaultAction(Object)

(继承自 AccessibleObject)
IAccessible.accFocus

获取具有键盘焦点的对象。 有关此成员的说明,请参见 accFocus

(继承自 AccessibleObject)
IAccessible.accHitTest(Int32, Int32)

在指定的屏幕坐标位置获取子对象。 有关此成员的说明,请参见 accHitTest(Int32, Int32)

(继承自 AccessibleObject)
IAccessible.accLocation(Int32, Int32, Int32, Int32, Object)

获取对象的当前屏幕位置。 有关此成员的说明,请参见 accLocation(Int32, Int32, Int32, Int32, Object)

(继承自 AccessibleObject)
IAccessible.accNavigate(Int32, Object)

相对于当前对象定位到一个辅助性对象。 有关此成员的说明,请参见 accNavigate(Int32, Object)

(继承自 AccessibleObject)
IAccessible.accParent

获取该对象的父辅助性对象。 有关此成员的说明,请参见 accParent

(继承自 AccessibleObject)
IAccessible.accSelect(Int32, Object)

修改选择内容或移动辅助性对象的键盘焦点。 有关此成员的说明,请参见 accSelect(Int32, Object)

(继承自 AccessibleObject)
IAccessible.accSelection

获取辅助性对象的选定子对象。 有关此成员的说明,请参见 accSelection

(继承自 AccessibleObject)
IReflect.GetField(String, BindingFlags)

获取与指定字段和绑定标志对应的 FieldInfo 对象。 有关此成员的说明,请参见 GetField(String, BindingFlags)

(继承自 AccessibleObject)
IReflect.GetFields(BindingFlags)

获取与当前类的所有字段对应的 FieldInfo 对象的数组。 有关此成员的说明,请参见 GetFields(BindingFlags)

(继承自 AccessibleObject)
IReflect.GetMember(String, BindingFlags)

获取 MemberInfo 对象数组,这些对象对应于所有公共成员或与指定的名称匹配的所有成员。 有关此成员的说明,请参见 GetMember(String, BindingFlags)

(继承自 AccessibleObject)
IReflect.GetMembers(BindingFlags)

获取 MemberInfo 对象数组,这些对象对应于所有公共成员或者当前类的所有成员。 有关此成员的说明,请参见 GetMembers(BindingFlags)

(继承自 AccessibleObject)
IReflect.GetMethod(String, BindingFlags)

在指定的搜索约束下获取与指定方法对应的 MethodInfo 对象。 有关此成员的说明,请参见 GetMethod(String, BindingFlags)

(继承自 AccessibleObject)
IReflect.GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

获取与指定方法对应的 MethodInfo 对象(使用类型数组从重载方法中进行选择)。 有关此成员的说明,请参见 GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

(继承自 AccessibleObject)
IReflect.GetMethods(BindingFlags)

获取 MethodInfo 对象的数组,其中包含了所有公共方法或当前类的所有方法。 有关此成员的说明,请参见 GetMethods(BindingFlags)

(继承自 AccessibleObject)
IReflect.GetProperties(BindingFlags)

获取 PropertyInfo 对象数组,这些对象对应于所有公共属性或当前类的所有属性。 有关此成员的说明,请参见 GetProperties(BindingFlags)

(继承自 AccessibleObject)
IReflect.GetProperty(String, BindingFlags)

在指定的搜索约束下获取与指定属性对应的 PropertyInfo 对象。 有关此成员的说明,请参见 GetProperty(String, BindingFlags)

(继承自 AccessibleObject)
IReflect.GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

在指定的搜索约束下获取与指定属性对应的 PropertyInfo 对象。 有关此成员的说明,请参见 GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

(继承自 AccessibleObject)
IReflect.InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])

调用指定的成员。 有关此成员的说明,请参见 InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])

(继承自 AccessibleObject)
IReflect.UnderlyingSystemType

获取表示 IReflect 对象的基础类型。 有关此成员的说明,请参见 UnderlyingSystemType

(继承自 AccessibleObject)

适用于

另请参阅