DataGridView.DataGridViewAccessibleObject Class
TOC
Collapse the table of content
Expand the table of content

DataGridView.DataGridViewAccessibleObject Class

 

Provides information about the DataGridView control to accessibility client applications.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

System.Object
  System.MarshalByRefObject
    System.Runtime.InteropServices.StandardOleMarshalObject
      System.Windows.Forms.AccessibleObject
        System.Windows.Forms.Control.ControlAccessibleObject
          System.Windows.Forms.DataGridView.DataGridViewAccessibleObject

[ComVisibleAttribute(true)]
protected class DataGridViewAccessibleObject : Control.ControlAccessibleObject

NameDescription
System_CAPS_pubmethodDataGridView.DataGridViewAccessibleObject(DataGridView)

Initializes a new instance of the DataGridView.DataGridViewAccessibleObject class.

NameDescription
System_CAPS_pubpropertyBounds

Gets the location and size of the accessible object.(Inherited from AccessibleObject.)

System_CAPS_pubpropertyDefaultAction

Gets a string that describes the default action of the object. Not all objects have a default action.(Inherited from Control.ControlAccessibleObject.)

System_CAPS_pubpropertyDescription

Gets the description of the Control.ControlAccessibleObject.(Inherited from Control.ControlAccessibleObject.)

System_CAPS_pubpropertyHandle

Gets or sets the handle of the accessible object.(Inherited from Control.ControlAccessibleObject.)

System_CAPS_pubpropertyHelp

Gets the description of what the object does or how the object is used.(Inherited from Control.ControlAccessibleObject.)

System_CAPS_pubpropertyKeyboardShortcut

Gets the object shortcut key or access key for an accessible object.(Inherited from Control.ControlAccessibleObject.)

System_CAPS_pubpropertyName

Gets or sets the accessible object name.(Overrides Control.ControlAccessibleObject.Name.)

System_CAPS_pubpropertyOwner

Gets the owner of the accessible object.(Inherited from Control.ControlAccessibleObject.)

System_CAPS_pubpropertyParent

Gets the parent of an accessible object.(Inherited from Control.ControlAccessibleObject.)

System_CAPS_pubpropertyRole

Gets the role of the DataGridView.DataGridViewAccessibleObject.(Overrides Control.ControlAccessibleObject.Role.)

System_CAPS_pubpropertyState

Gets the state of this accessible object.(Inherited from AccessibleObject.)

System_CAPS_pubpropertyValue

Gets or sets the value of an accessible object.(Inherited from AccessibleObject.)

NameDescription
System_CAPS_pubmethodCreateObjRef(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.)

System_CAPS_pubmethodDoDefaultAction()

Performs the default action associated with this accessible object.(Inherited from AccessibleObject.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetChild(Int32)

Returns the child accessible object corresponding to the specified index.(Overrides AccessibleObject.GetChild(Int32).)

System_CAPS_pubmethodGetChildCount()

Returns the number of child objects belonging to an accessible object.(Overrides AccessibleObject.GetChildCount().)

System_CAPS_pubmethodGetFocused()

Returns the accessible object of the DataGridViewCell that has the keyboard focus.(Overrides AccessibleObject.GetFocused().)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetHelpTopic(String)

Gets an identifier for a Help topic and the path to the Help file associated with this accessible object.(Inherited from Control.ControlAccessibleObject.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetSelected()

Returns an AccessibleObject that represents the selected cells in the DataGridView control.(Overrides AccessibleObject.GetSelected().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodHitTest(Int32, Int32)

Retrieves the child object at the specified screen coordinates.(Overrides AccessibleObject.HitTest(Int32, Int32).)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodNavigate(AccessibleNavigation)

Navigates to another accessible object.(Overrides AccessibleObject.Navigate(AccessibleNavigation).)

System_CAPS_pubmethodNotifyClients(AccessibleEvents)

Notifies accessibility client applications of the specified AccessibleEvents.(Inherited from Control.ControlAccessibleObject.)

System_CAPS_pubmethodNotifyClients(AccessibleEvents, Int32)

Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control.(Inherited from Control.ControlAccessibleObject.)

System_CAPS_pubmethodNotifyClients(AccessibleEvents, Int32, Int32)

Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control, giving the identification of the AccessibleObject.(Inherited from Control.ControlAccessibleObject.)

System_CAPS_pubmethodSelect(AccessibleSelection)

Modifies the selection or moves the keyboard focus of the accessible object.(Inherited from AccessibleObject.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Control.ControlAccessibleObject.)

System_CAPS_protmethodUseStdAccessibleObjects(IntPtr)

This API supports the product infrastructure and is not intended to be used directly from your code. Associates an object with an instance of an AccessibleObject based on the handle of the object.(Inherited from AccessibleObject.)

System_CAPS_protmethodUseStdAccessibleObjects(IntPtr, Int32)

This API supports the product infrastructure and is not intended to be used directly from your code. Associates an object with an instance of an AccessibleObject based on the handle and the object id of the object.(Inherited from AccessibleObject.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIAccessible.accDoDefaultAction(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Performs the specified object's default action. Not all objects have a default action. For a description of this member, see IAccessible.accDoDefaultAction.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIAccessible.accHitTest(Int32, Int32)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the child object at the specified screen coordinates. For a description of this member, see IAccessible.accHitTest.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIAccessible.accLocation(Int32, Int32, Int32, Int32, Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the object's current screen location. For a description of this member, see IAccessible.accLocation.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIAccessible.accNavigate(Int32, Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Navigates to an accessible object relative to the current object. For a description of this member, see IAccessible.accNavigate.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIAccessible.accSelect(Int32, Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Modifies the selection or moves the keyboard focus of the accessible object. For a description of this member, see IAccessible.accSelect.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIReflect.GetField(String, BindingFlags)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the System.Reflection.FieldInfo object corresponding to the specified field and binding flag. For a description of this member, see IReflect.GetField.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIReflect.GetFields(BindingFlags)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an array of System.Reflection.FieldInfo objects corresponding to all fields of the current class. For a description of this member, see IReflect.GetFields.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIReflect.GetMember(String, BindingFlags)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an array of System.Reflection.MemberInfo objects corresponding to all public members or to all members that match a specified name. For a description of this member, see IReflect.GetMember.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIReflect.GetMembers(BindingFlags)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an array of System.Reflection.MemberInfo objects corresponding either to all public members or to all members of the current class. For a description of this member, see IReflect.GetMembers.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIReflect.GetMethod(String, BindingFlags)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets a System.Reflection.MethodInfo object corresponding to a specified method under specified search constraints. For a description of this member, see IReflect.GetMethod.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIReflect.GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

This API supports the product infrastructure and is not intended to be used directly from your code. Gets a System.Reflection.MethodInfo object corresponding to a specified method, using a Type array to choose from among overloaded methods. For a description of this member, see IReflect.GetMethod.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIReflect.GetMethods(BindingFlags)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an array of System.Reflection.MethodInfo objects with all public methods or all methods of the current class. For a description of this member, see IReflect.GetMethods.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIReflect.GetProperties(BindingFlags)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an array of System.Reflection.PropertyInfo objects corresponding to all public properties or to all properties of the current class. For a description of this member, see IReflect.GetProperties.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIReflect.GetProperty(String, BindingFlags)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets a System.Reflection.PropertyInfo object corresponding to a specified property under specified search constraints. For a description of this member, see IReflect.GetProperty.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIReflect.GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

This API supports the product infrastructure and is not intended to be used directly from your code. Gets a System.Reflection.PropertyInfo object corresponding to a specified property with specified search constraints. For a description of this member, see IReflect.GetProperty.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIReflect.InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])

This API supports the product infrastructure and is not intended to be used directly from your code. Invokes a specified member. For a description of this member, see IReflect.InvokeMember.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIAccessible.accChildCount

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the number of child interfaces that belong to this object. For a description of this member, see IAccessible.accChildCount.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIAccessible.accFocus

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the object that has the keyboard focus. For a description of this member, see IAccessible.accFocus.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIAccessible.accParent

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the parent accessible object of this object. For a description of this member, see IAccessible.accParent.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIAccessible.accSelection

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the selected child objects of an accessible object. For a description of this member, see IAccessible.accSelection.(Inherited from AccessibleObject.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIReflect.UnderlyingSystemType

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the underlying type that represents the IReflect object. For a description of this member, see IReflect.UnderlyingSystemType.(Inherited from AccessibleObject.)

Windows Forms has accessibility support built in and provides information about your application that allows it to work with accessibility client applications. Examples of accessibility client applications are screen enlarger and reviewer utilities, voice input utilities, on-screen keyboards, alternative input devices, and keyboard enhancement utilities.

The DataGridView.DataGridViewAccessibleObject class inherits from the AccessibleObject class to provide information about the DataGridView control to accessibility client applications. Each class that represents a visual part of the DataGridViewDataGridViewColumnHeaderCell, 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.

System_CAPS_noteNote

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.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft