TextPattern.DocumentRange Property

Definition

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

C#
public System.Windows.Automation.Text.TextPatternRange DocumentRange { get; }

Property Value

Examples

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

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

Remarks

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

Applies to

Produk Versi
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also