TextPattern.DocumentRange Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a text range that encloses the main text of a document.

Namespace:   System.Windows.Automation
Assembly:  UIAutomationClient (in UIAutomationClient.dll)

public TextPatternRange DocumentRange { get; }

Some auxiliary text such as headers, footnotes, or annotations might not be included.

In the following code example, the targetTextPattern member variable is a TextPattern object obtained from a text provider of interest.

// Initialize the document range for the text of the document.
documentRange = targetTextPattern.DocumentRange;

.NET Framework
Available since 3.0
Return to top
Show: