Share via


Using Active Accessibility to Expose Text

Using Active Accessibility to Expose Text

Overview of using active accessibility to expose text.

Applications can use Microsoft® Active Accessibility® to expose text. However, the IAccessible interface defined by earlier versions of Active Accessibility is not optimized for exposing large amounts of rich text. Later versions define interfaces that are optimized for exposing large amounts of text and textual attributes.

To expose large amounts text, create separate Component Object Model (COM) objects that support IAccessible, or child elements, to represent each run of text. A run is a line, or portion of a line, that shares the same formatting.

Active Accessibility exposes only the text and its location, but has no mechanism for exposing the formatting of the text. Despite these limitations, some programs use Active Accessibility to expose text. For example, Microsoft Internet Explorer and Microsoft Visual Studio® both use Active Accessibility to expose large amounts of text.

For more information about exposing text by using Active Accessibility, see the Accessibility Leave Site section of the MSDN® Library.