AccessibleObject Class

 

Provides information that accessibility applications use to adjust an application's user interface (UI) for users with impairments.

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


[<ComVisibleAttribute(true)>]
type AccessibleObject = 
    class
        inherit StandardOleMarshalObject
        interface IReflect
        interface IAccessible
    end

NameDescription
System_CAPS_pubmethodAccessibleObject()

Initializes a new instance of the AccessibleObject class.

NameDescription
System_CAPS_pubpropertyBounds

Gets the location and size of the accessible object.

System_CAPS_pubpropertyDefaultAction

Gets a string that describes the default action of the object. Not all objects have a default action.

System_CAPS_pubpropertyDescription

Gets a string that describes the visual appearance of the specified object. Not all objects have a description.

System_CAPS_pubpropertyHelp

Gets a description of what the object does or how the object is used.

System_CAPS_pubpropertyKeyboardShortcut

Gets the shortcut key or access key for the accessible object.

System_CAPS_pubpropertyName

Gets or sets the object name.

System_CAPS_pubpropertyParent

Gets the parent of an accessible object.

System_CAPS_pubpropertyRole

Gets the role of this accessible object.

System_CAPS_pubpropertyState

Gets the state of this accessible object.

System_CAPS_pubpropertyValue

Gets or sets the value of an accessible object.

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.

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)

Retrieves the accessible child corresponding to the specified index.

System_CAPS_pubmethodGetChildCount()

Retrieves the number of children belonging to an accessible object.

System_CAPS_pubmethodGetFocused()

Retrieves the object that has the keyboard focus.

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetHelpTopic(String)

Gets an identifier for a Help topic identifier and the path to the Help file associated with this accessible object.

System_CAPS_pubmethodGetLifetimeService()

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

System_CAPS_pubmethodGetSelected()

Retrieves the currently selected child.

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.

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.

System_CAPS_pubmethodSelect(AccessibleSelection)

Modifies the selection or moves the keyboard focus of the accessible object.

System_CAPS_pubmethodToString()

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

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Accessibility applications can adjust features of the application to improve usability for users with disabilities.

For users who are visually impaired, you can adjust software and operating system features to comply with their needs. For example, you can enlarge text and images and render them with a contrast. In addition, you can accommodate color-blindness with the appropriate use of colors. For users who are severely visually impaired, computers are accessible with screen review aids that translate on-screen text to speech or to a dynamic, refreshable, Braille display.

For users who are hard of hearing, you can design programs that use visual cues, such as a flashing toolbar; or you can display spoken messages as text. For example, when turned on, the SoundSentry feature, an accessibility option in Control Panel, provides a visual warning whenever the system makes an alarm sound.

For users with motion disabilities, you can design controls that refine or eliminate keyboard and mouse use, thereby improving computer accessibility. Control Panel offers assistance. For example, one alternative is to use the numeric keypad instead of the mouse for navigation. Another option, called StickyKeys, enables users who cannot hold down two or more keys at a time (such as CTRL+P) to get the same result by typing one key at a time.

For users with cognitive and language disabilities, you can design software programs to better accommodate their needs. For example, using conspicuous or cued sequencing, uncomplicated displays, fewer words, and a reading level targeted to elementary school standards can benefit these users.

For users with seizure disorders, you can design software programs to eliminate seizure provoking patterns.

For more information about accessibility, including information about accessibility applications, see the documentation for Microsoft Accessibility in the MSDN library or at the Microsoft Web site.

System_CAPS_noteNote

To use the AccessibleObject, you must add a reference to the Accessibility assembly installed with the .NET Framework. Windows Forms only supports Active Accessibility 2.0.

Notes to Inheritors:

When you inherit from this class, you can override all the members.

The following code example demonstrates the creation of an accessibility-aware chart control, using the AccessibleObject and Control.ControlAccessibleObject classes to expose accessible information. The control plots two curves along with a legend. The ChartControlAccessibleObject class, which derives from ControlAccessibleObject, is used in the CreateAccessibilityInstance method to provide custom accessible information for the chart control. Because the chart legend is not an actual Control -based control, but instead is drawn by the chart control, it does not have any built-in accessible information. Because of this, the ChartControlAccessibleObject class overrides the GetChild method to return the CurveLegendAccessibleObject that represents accessible information for each part of the legend. When an accessible-aware application uses this control, the control can provide the necessary accessible information.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1

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: