DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject 类

定义

DataGridViewButtonCell 的相关信息提供给具有辅助功能的客户端应用程序。Provides information about a DataGridViewButtonCell to accessibility client applications.

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 窗体包括内置的辅助功能支持,使你的应用程序能够使用具有辅助功能的客户端应用程序。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.

DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject 类继承自 AccessibleObject 类,以便向具有辅助功能的客户端应用程序提供有关 DataGridViewButtonCell 的信息。The DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject class inherits from the AccessibleObject class to provide information about the DataGridViewButtonCell to accessibility client applications. 每个表示 DataGridView 的可视部分的类(如 DataGridViewColumnHeaderCellDataGridViewRowHeaderCellDataGridViewRowDataGridViewCell)还包含从 AccessibleObject 继承以提供有关包含类的信息并代表可访问性执行操作的类客户端应用程序。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.

在某些情况下,你将需要向具有辅助功能的客户端应用程序提供附加信息(例如 DataGridView 控件的名称或说明)。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. 若要提供现有控件的有限辅助功能信息,请设置控件的 AccessibleNameAccessibleDescription 属性值,这些值将报告给具有辅助功能的客户端应用程序。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.

备注

只应在极少数情况下更改 AccessibleDefaultActionDescriptionAccessibleRole 属性值,例如,如果您将 DataGridView 显示为列表。You should change the AccessibleDefaultActionDescription and AccessibleRole property values only in rare situations, such as if you make a DataGridView look like a list.

有时,你可能需要更多的辅助功能信息或不同的辅助功能操作,才能包含在你的自定义 DataGridViewDataGridViewCell中。Occasionally, you might require more accessibility information or different accessibility actions to be included with your custom DataGridView or DataGridViewCell. 若要自定义可访问性,可以编写自己的类,该类派生自 DataGridView.DataGridViewAccessibleObjectDataGridViewCell.DataGridViewCellAccessibleObject 类,并重写 CreateAccessibilityInstance 方法。To customize accessibility, you can write your own class that derives from the DataGridView.DataGridViewAccessibleObject or DataGridViewCell.DataGridViewCellAccessibleObject classes and override the CreateAccessibilityInstance method. 例如,如果您要编写一个自定义行标题单元格来实现独特的自定义操作(例如单元中的特殊命中测试),则应创建一个继承自 DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject 类的类并重写 CreateAccessibilityInstance 方法。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.

DataGridView 使用 AccessibleRole 值来定义数据表层次结构,从而公开其数据结构。The DataGridView exposes its data structure by using AccessibleRole values to define the data table hierarchy. 有关向 Microsoft Active Accessibility 公开数据表的详细信息,请参阅 MSDN Library 中的 "通过 Microsoft Active Accessibility 公开数据表 https://msdn.microsoft.com/library"。For more information on exposing data tables to Microsoft Active Accessibility, see "Exposing Data Tables through Microsoft Active Accessibility" in the MSDN Library at https://msdn.microsoft.com/library.

构造函数

DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject(DataGridViewCell)

初始化 DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject 类的新实例。Initializes a new instance of the DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject class.

属性

Bounds

获取辅助性对象的位置和大小。Gets the location and size of the accessible object.

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
DefaultAction

获取表示 String 的默认操作的 DataGridViewButtonCell.DataGridViewButtonCellAccessibleObjectGets a String that represents the default action of the DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject.

Description

获取说明指定对象可视外观的字符串。Gets a string that describes the visual appearance of the specified object. 并非所有对象都有说明。Not all objects have a description.

(继承自 AccessibleObject)
Help

获取所属单元格类型和基类型的名称。Gets the names of the owning cell's type and base type.

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
KeyboardShortcut

获取辅助性对象的快捷键或访问键。Gets the shortcut key or access key for the accessible object.

(继承自 AccessibleObject)
Name

获取 DataGridViewCell.DataGridViewCellAccessibleObject 的名称。Gets the name of the DataGridViewCell.DataGridViewCellAccessibleObject.

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
Owner

获取或设置拥有 DataGridViewCell.DataGridViewCellAccessibleObject 的单元格。Gets or sets the cell that owns the DataGridViewCell.DataGridViewCellAccessibleObject.

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
Parent

获取 DataGridViewCell.DataGridViewCellAccessibleObject 的父级。Gets the parent of the DataGridViewCell.DataGridViewCellAccessibleObject.

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
Role

获取 DataGridViewCell.DataGridViewCellAccessibleObject 的角色。Gets the role of the DataGridViewCell.DataGridViewCellAccessibleObject.

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
State

获取 DataGridViewCell.DataGridViewCellAccessibleObject 的状态。Gets the state of the DataGridViewCell.DataGridViewCellAccessibleObject.

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
Value

获取或设置一个字符串,该字符串表示所属单元格的格式化值。Gets or sets a string representing the formatted value of the owning cell.

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)

方法

CreateObjRef(Type)

创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(继承自 MarshalByRefObject)
DoDefaultAction()

执行 DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject 的默认操作Performs the default action of the DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetChild(Int32)

获取对应于指定索引的辅助性对象。Returns the accessible object corresponding to the specified index.

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
GetChildCount()

获取属于 DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject 的可访问子对象的数量。Gets the number of child accessible objects that belong to the DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject.

GetFocused()

返回拥有键盘焦点的子级辅助性对象。Returns the child accessible object that has keyboard focus.

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetHelpTopic(String)

获取帮助主题标识符及与该辅助性对象相关的帮助文件的路径。Gets an identifier for a Help topic identifier and the path to the Help file associated with this accessible object.

(继承自 AccessibleObject)
GetLifetimeService()

检索控制此实例的生存期策略的当前生存期服务对象。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(继承自 MarshalByRefObject)
GetSelected()

返回当前选择的子级辅助性对象。Returns the child accessible object that is currently selected.

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

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

检索位于指定屏幕坐标的子对象。Retrieves the child object at the specified screen coordinates.

(继承自 AccessibleObject)
InitializeLifetimeService()

获取生存期服务对象来控制此实例的生存期策略。Obtains a lifetime service object to control the lifetime policy for this instance.

(继承自 MarshalByRefObject)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。Creates a shallow copy of the current MarshalByRefObject object.

(继承自 MarshalByRefObject)
Navigate(AccessibleNavigation)

定位到另一个辅助性对象。Navigates to another accessible object.

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

引发 UI 自动化通知事件。Raises the UI automation notification event.

(继承自 AccessibleObject)
RaiseLiveRegionChanged()

引发 LiveRegionChanged UI 自动化事件。Raises the LiveRegionChanged UI automation event.

(继承自 AccessibleObject)
Select(AccessibleSelection)

修改选择内容或移动辅助性对象的键盘焦点。Modifies the selection or moves the keyboard focus of the accessible object.

(继承自 DataGridViewCell.DataGridViewCellAccessibleObject)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)
UseStdAccessibleObjects(IntPtr)

根据对象的句柄,将一个对象与 AccessibleObject 的一个实例关联起来。Associates an object with an instance of an AccessibleObject based on the handle of the object.

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

根据对象的句柄和对象 ID,将一个对象与 AccessibleObject 的一个实例关联起来。Associates an object with an instance of an AccessibleObject based on the handle and the object id of the object.

(继承自 AccessibleObject)

显式界面实现

IAccessible.accChildCount

获取属于该对象的子接口的数量。Gets the number of child interfaces that belong to this object. 有关此成员的说明,请参见 accChildCountFor a description of this member, see accChildCount.

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

执行指定对象的默认操作。Performs the specified object's default action. 并非所有对象都有默认操作。Not all objects have a default action. 有关此成员的说明,请参见 accDoDefaultAction(Object)For a description of this member, see accDoDefaultAction(Object).

(继承自 AccessibleObject)
IAccessible.accFocus

获取具有键盘焦点的对象。Gets the object that has the keyboard focus. 有关此成员的说明,请参见 accFocusFor a description of this member, see accFocus.

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

在指定的屏幕坐标位置获取子对象。Gets the child object at the specified screen coordinates. 有关此成员的说明,请参见 accHitTest(Int32, Int32)For a description of this member, see accHitTest(Int32, Int32).

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

获取对象的当前屏幕位置。Gets the object's current screen location. 有关此成员的说明,请参见 accLocation(Int32, Int32, Int32, Int32, Object)For a description of this member, see accLocation(Int32, Int32, Int32, Int32, Object).

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

相对于当前对象定位到一个辅助性对象。Navigates to an accessible object relative to the current object. 有关此成员的说明,请参见 accNavigate(Int32, Object)For a description of this member, see accNavigate(Int32, Object).

(继承自 AccessibleObject)
IAccessible.accParent

获取该对象的父辅助性对象。Gets the parent accessible object of this object. 有关此成员的说明,请参见 accParentFor a description of this member, see accParent.

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

修改选择内容或移动辅助性对象的键盘焦点。Modifies the selection or moves the keyboard focus of the accessible object. 有关此成员的说明,请参见 accSelect(Int32, Object)For a description of this member, see accSelect(Int32, Object).

(继承自 AccessibleObject)
IAccessible.accSelection

获取辅助性对象的选定子对象。Gets the selected child objects of an accessible object. 有关此成员的说明,请参见 accSelectionFor a description of this member, see accSelection.

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

检索指定的子对象。Retrieves a specified child object.

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

返回指示指定对象的默认操作的字符串。Returns a string that indicates the specified object's default action.

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

返回描述指定辅助性对象的可视外观的字符串。Returns a string that describes the visual appearance of the specified accessible object.

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

检索与指定辅助性对象相关联的 WinHelp 文件的完整路径。Retrieves the full path of the WinHelp file that is associated with the specified accessible object.

(继承自 AccessibleObject)
IAccessible.get_accHelpTopic(String, Object)

检索与指定对象相关联的 WinHelp 文件的完整路径以及该文件中指定主题的标识符。Retrieves the full path of a WinHelp file that is associated with the specified object along with the identifier of a specific topic in the file.

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

检索指定对象的键盘快捷方式或访问密钥。Retrieves the specified object's keyboard shortcut or access key.

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

检索指定对象的名称。Retrieves the name of the specified object.

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

检索描述指定对象的角色的信息。Retrieves information that describes the role of the specified object.

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

检索指定辅助性对象的当前状态。Retrieves the current state of the specified accessible object.

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

检索指定辅助性对象的值。Retrieves the value of the specified accessible object. 并非所有对象都有值。Not all objects have a value.

(继承自 AccessibleObject)
IAccessible.set_accName(Object, String)

将新的可访问名称分配给指定的元素。Assigns a new accessible name to the specified element.

(继承自 AccessibleObject)
IAccessible.set_accValue(Object, String)

将新的值分配给指定的元素。Assigns a new value to the specified element.

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

获取与指定字段和绑定标志对应的 FieldInfo 对象。Gets the FieldInfo object corresponding to the specified field and binding flag. 有关此成员的说明,请参见 GetField(String, BindingFlags)For a description of this member, see GetField(String, BindingFlags).

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

获取与当前类的所有字段对应的 FieldInfo 对象的数组。Gets an array of FieldInfo objects corresponding to all fields of the current class. 有关此成员的说明,请参见 GetFields(BindingFlags)For a description of this member, see GetFields(BindingFlags).

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

获取 MemberInfo 对象数组,这些对象对应于所有公共成员或与指定的名称匹配的所有成员。Gets an array of MemberInfo objects corresponding to all public members or to all members that match a specified name. 有关此成员的说明,请参见 GetMember(String, BindingFlags)For a description of this member, see GetMember(String, BindingFlags).

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

获取 MemberInfo 对象数组,这些对象对应于所有公共成员或者当前类的所有成员。Gets an array of MemberInfo objects corresponding either to all public members or to all members of the current class. 有关此成员的说明,请参见 GetMembers(BindingFlags)For a description of this member, see GetMembers(BindingFlags).

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

在指定的搜索约束下获取与指定方法对应的 MethodInfo 对象。Gets a MethodInfo object corresponding to a specified method under specified search constraints. 有关此成员的说明,请参见 GetMethod(String, BindingFlags)For a description of this member, see GetMethod(String, BindingFlags).

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

获取与指定方法对应的 MethodInfo 对象(使用类型数组从重载方法中进行选择)。Gets a MethodInfo object corresponding to a specified method, using a Type array to choose from among overloaded methods. 有关此成员的说明,请参见 GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])For a description of this member, see GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]).

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

获取 MethodInfo 对象的数组,其中包含了所有公共方法或当前类的所有方法。Gets an array of MethodInfo objects with all public methods or all methods of the current class. 有关此成员的说明,请参见 GetMethods(BindingFlags)For a description of this member, see GetMethods(BindingFlags).

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

获取 PropertyInfo 对象数组,这些对象对应于所有公共属性或当前类的所有属性。Gets an array of PropertyInfo objects corresponding to all public properties or to all properties of the current class. 有关此成员的说明,请参见 GetProperties(BindingFlags)For a description of this member, see GetProperties(BindingFlags).

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

在指定的搜索约束下获取与指定属性对应的 PropertyInfo 对象。Gets a PropertyInfo object corresponding to a specified property under specified search constraints. 有关此成员的说明,请参见 GetProperty(String, BindingFlags)For a description of this member, see GetProperty(String, BindingFlags).

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

在指定的搜索约束下获取与指定属性对应的 PropertyInfo 对象。Gets a PropertyInfo object corresponding to a specified property with specified search constraints. 有关此成员的说明,请参见 GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])For a description of this member, see GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]).

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

调用指定的成员。Invokes a specified member. 有关此成员的说明,请参见 InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])For a description of this member, see InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]).

(继承自 AccessibleObject)
IReflect.UnderlyingSystemType

获取表示 IReflect 对象的基础类型。Gets the underlying type that represents the IReflect object. 有关此成员的说明,请参见 UnderlyingSystemTypeFor a description of this member, see UnderlyingSystemType.

(继承自 AccessibleObject)

适用于

另请参阅