DataGridView.DataGridViewTopRowAccessibleObject DataGridView.DataGridViewTopRowAccessibleObject DataGridView.DataGridViewTopRowAccessibleObject Class

定义

DataGridViewColumnHeaderCell 对象的行的相关信息提供给具有辅助功能的客户端应用程序。Provides information about a row of DataGridViewColumnHeaderCell objects to accessibility client applications.

protected: ref class DataGridView::DataGridViewTopRowAccessibleObject : System::Windows::Forms::AccessibleObject
[System.Runtime.InteropServices.ComVisible(true)]
protected class DataGridView.DataGridViewTopRowAccessibleObject : System.Windows.Forms.AccessibleObject
Protected Class DataGridView.DataGridViewTopRowAccessibleObject
Inherits AccessibleObject
继承
DataGridView.DataGridViewTopRowAccessibleObjectDataGridView.DataGridViewTopRowAccessibleObjectDataGridView.DataGridViewTopRowAccessibleObject
属性

注解

Windows 窗体包括内置的辅助功能支持,允许应用程序以使用辅助功能客户端应用程序。Windows Forms includes built-in accessibility support that allows your program 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.

DataGridView.DataGridViewTopRowAccessibleObject类继承自AccessibleObject类提供的行的相关信息DataGridViewColumnHeaderCell辅助功能客户端应用程序的对象。The DataGridView.DataGridViewTopRowAccessibleObject class inherits from the AccessibleObject class to provide information about a row of DataGridViewColumnHeaderCell objects 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.

有时,可能需要更多的辅助功能信息或其他可访问性操作,将包括您的自定义DataGridViewDataGridViewCellOccasionally, 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 的数据表的详细信息,请参阅"公开数据的表通过 Microsoft Active Accessibility"上的 MSDN library 中http://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 http://msdn.microsoft.com/library.

构造函数

DataGridView.DataGridViewTopRowAccessibleObject() DataGridView.DataGridViewTopRowAccessibleObject() DataGridView.DataGridViewTopRowAccessibleObject()

初始化的新实例DataGridView.DataGridViewTopRowAccessibleObject类,而设置Owner属性。Initializes a new instance of the DataGridView.DataGridViewTopRowAccessibleObject class without setting the Owner property.

DataGridView.DataGridViewTopRowAccessibleObject(DataGridView) DataGridView.DataGridViewTopRowAccessibleObject(DataGridView) DataGridView.DataGridViewTopRowAccessibleObject(DataGridView)

初始化的新实例DataGridView.DataGridViewTopRowAccessibleObject类,设置Owner属性设置为指定的值。Initializes a new instance of the DataGridView.DataGridViewTopRowAccessibleObject class, setting the Owner property to the specified value.

属性

Bounds Bounds Bounds

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

DefaultAction DefaultAction DefaultAction

获取描述对象默认操作的字符串。Gets a string that describes the default action of the object. 并非所有对象都有默认操作。Not all objects have a default action.

(Inherited from AccessibleObject)
Description Description Description

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

(Inherited from AccessibleObject)
Help Help Help

获取对象用途或如何使用该对象的说明。Gets a description of what the object does or how the object is used.

(Inherited from AccessibleObject)
IAccessible.accChildCount IAccessible.accChildCount IAccessible.accChildCount

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

(Inherited from AccessibleObject)
IAccessible.accFocus IAccessible.accFocus IAccessible.accFocus

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

(Inherited from AccessibleObject)
IAccessible.accParent IAccessible.accParent IAccessible.accParent

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

(Inherited from AccessibleObject)
IAccessible.accSelection IAccessible.accSelection IAccessible.accSelection

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

(Inherited from AccessibleObject)
IReflect.UnderlyingSystemType IReflect.UnderlyingSystemType IReflect.UnderlyingSystemType

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

(Inherited from AccessibleObject)
KeyboardShortcut KeyboardShortcut KeyboardShortcut

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

(Inherited from AccessibleObject)
Name Name Name

获取辅助性对象的名称。Gets the name of the accessible object.

Owner Owner Owner

获取DataGridView,其中包含列标题的行。Gets the DataGridView that contains the row of column headers.

Parent Parent Parent

获取 DataGridView.DataGridViewTopRowAccessibleObject 的父级。Gets the parent of the DataGridView.DataGridViewTopRowAccessibleObject.

Role Role Role

获取可访问对象的角色。Gets the role of the accessible object.

State State State

获取此辅助性对象的状态。Gets the state of this accessible object.

(Inherited from AccessibleObject)
Value Value Value

获取可访问对象的值。Gets the value of an accessible object.

方法

CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

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

(Inherited from MarshalByRefObject)
DoDefaultAction() DoDefaultAction() DoDefaultAction()

执行与该辅助性对象相关联的默认操作。Performs the default action associated with this accessible object.

(Inherited from AccessibleObject)
Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetChild(Int32) GetChild(Int32) GetChild(Int32)

返回成员的子辅助性对象对应于指定的索引。Returns the child accessible object corresponding to the specified index.

GetChildCount() GetChildCount() GetChildCount()

返回属于辅助性对象的子级的个数。Returns the number of children belonging to the accessible object.

GetFocused() GetFocused() GetFocused()

检索具有键盘焦点的对象。Retrieves the object that has the keyboard focus.

(Inherited from AccessibleObject)
GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetHelpTopic(String) GetHelpTopic(String) GetHelpTopic(String)

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

(Inherited from AccessibleObject)
GetLifetimeService() GetLifetimeService() GetLifetimeService()

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

(Inherited from MarshalByRefObject)
GetSelected() GetSelected() GetSelected()

检索当前选定的子级。Retrieves the currently selected child.

(Inherited from AccessibleObject)
GetType() GetType() GetType()

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

(Inherited from Object)
HitTest(Int32, Int32) HitTest(Int32, Int32) HitTest(Int32, Int32)

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

(Inherited from AccessibleObject)
InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

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

(Inherited from MarshalByRefObject)
MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

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

(Inherited from MarshalByRefObject)
Navigate(AccessibleNavigation) Navigate(AccessibleNavigation) Navigate(AccessibleNavigation)

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

RaiseAutomationNotification(AutomationNotificationKind, AutomationNotificationProcessing, String) RaiseAutomationNotification(AutomationNotificationKind, AutomationNotificationProcessing, String) RaiseAutomationNotification(AutomationNotificationKind, AutomationNotificationProcessing, String)

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

(Inherited from AccessibleObject)
RaiseLiveRegionChanged() RaiseLiveRegionChanged() RaiseLiveRegionChanged()

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

(Inherited from AccessibleObject)
Select(AccessibleSelection) Select(AccessibleSelection) Select(AccessibleSelection)

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

(Inherited from AccessibleObject)
ToString() ToString() ToString()

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

(Inherited from Object)
UseStdAccessibleObjects(IntPtr) UseStdAccessibleObjects(IntPtr) UseStdAccessibleObjects(IntPtr)

将对象与实例相关联AccessibleObject基于对象的句柄。Associates an object with an instance of an AccessibleObject based on the handle of the object.

(Inherited from AccessibleObject)
UseStdAccessibleObjects(IntPtr, Int32) UseStdAccessibleObjects(IntPtr, Int32) UseStdAccessibleObjects(IntPtr, Int32)

将对象与实例相关联AccessibleObject基于句柄和对象的对象 id。Associates an object with an instance of an AccessibleObject based on the handle and the object id of the object.

(Inherited from AccessibleObject)

显式界面实现

IAccessible.accDoDefaultAction(Object) IAccessible.accDoDefaultAction(Object) 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).

(Inherited from AccessibleObject)
IAccessible.accHitTest(Int32, Int32) IAccessible.accHitTest(Int32, Int32) 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).

(Inherited from AccessibleObject)
IAccessible.accLocation(Int32, Int32, Int32, Int32, Object) IAccessible.accLocation(Int32, Int32, Int32, Int32, Object) 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).

(Inherited from AccessibleObject)
IAccessible.accNavigate(Int32, Object) IAccessible.accNavigate(Int32, Object) 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).

(Inherited from AccessibleObject)
IAccessible.accSelect(Int32, Object) IAccessible.accSelect(Int32, Object) 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).

(Inherited from AccessibleObject)
IAccessible.get_accChild(Object) IAccessible.get_accChild(Object) IAccessible.get_accChild(Object)

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

(Inherited from AccessibleObject)
IAccessible.get_accDefaultAction(Object) IAccessible.get_accDefaultAction(Object) IAccessible.get_accDefaultAction(Object)

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

(Inherited from AccessibleObject)
IAccessible.get_accDescription(Object) IAccessible.get_accDescription(Object) IAccessible.get_accDescription(Object)

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

(Inherited from AccessibleObject)
IAccessible.get_accHelp(Object) IAccessible.get_accHelp(Object) IAccessible.get_accHelp(Object)

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

(Inherited from AccessibleObject)
IAccessible.get_accHelpTopic(String, Object) IAccessible.get_accHelpTopic(String, Object) 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.

(Inherited from AccessibleObject)
IAccessible.get_accKeyboardShortcut(Object) IAccessible.get_accKeyboardShortcut(Object) IAccessible.get_accKeyboardShortcut(Object)

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

(Inherited from AccessibleObject)
IAccessible.get_accName(Object) IAccessible.get_accName(Object) IAccessible.get_accName(Object)

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

(Inherited from AccessibleObject)
IAccessible.get_accRole(Object) IAccessible.get_accRole(Object) IAccessible.get_accRole(Object)

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

(Inherited from AccessibleObject)
IAccessible.get_accState(Object) IAccessible.get_accState(Object) IAccessible.get_accState(Object)

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

(Inherited from AccessibleObject)
IAccessible.get_accValue(Object) IAccessible.get_accValue(Object) IAccessible.get_accValue(Object)

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

(Inherited from AccessibleObject)
IAccessible.set_accName(Object, String) IAccessible.set_accName(Object, String) IAccessible.set_accName(Object, String)

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

(Inherited from AccessibleObject)
IAccessible.set_accValue(Object, String) IAccessible.set_accValue(Object, String) IAccessible.set_accValue(Object, String)

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

(Inherited from AccessibleObject)
IReflect.GetField(String, BindingFlags) IReflect.GetField(String, BindingFlags) 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).

(Inherited from AccessibleObject)
IReflect.GetFields(BindingFlags) IReflect.GetFields(BindingFlags) 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).

(Inherited from AccessibleObject)
IReflect.GetMember(String, BindingFlags) IReflect.GetMember(String, BindingFlags) 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).

(Inherited from AccessibleObject)
IReflect.GetMembers(BindingFlags) IReflect.GetMembers(BindingFlags) 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).

(Inherited from AccessibleObject)
IReflect.GetMethod(String, BindingFlags) IReflect.GetMethod(String, BindingFlags) 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).

(Inherited from AccessibleObject)
IReflect.GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) IReflect.GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) 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[]).

(Inherited from AccessibleObject)
IReflect.GetMethods(BindingFlags) IReflect.GetMethods(BindingFlags) 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).

(Inherited from AccessibleObject)
IReflect.GetProperties(BindingFlags) IReflect.GetProperties(BindingFlags) 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).

(Inherited from AccessibleObject)
IReflect.GetProperty(String, BindingFlags) IReflect.GetProperty(String, BindingFlags) 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).

(Inherited from AccessibleObject)
IReflect.GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) IReflect.GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) 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[]).

(Inherited from AccessibleObject)
IReflect.InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]) IReflect.InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]) 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[]).

(Inherited from AccessibleObject)

字段

RuntimeIDFirstItem RuntimeIDFirstItem RuntimeIDFirstItem Inherited from AccessibleObject

适用于

另请参阅