TextPattern.DocumentRange Vlastnost

Definice

Získá oblast textu, která uzavře hlavní text dokumentu.

public:
 property System::Windows::Automation::Text::TextPatternRange ^ DocumentRange { System::Windows::Automation::Text::TextPatternRange ^ get(); };
public System.Windows.Automation.Text.TextPatternRange DocumentRange { get; }
member this.DocumentRange : System.Windows.Automation.Text.TextPatternRange
Public ReadOnly Property DocumentRange As TextPatternRange

Hodnota vlastnosti

TextPatternRange

Příklady

V následujícím příkladu kódu je TextPattern cílová proměnná členaTextPattern objekt získaný z textového zprostředkovatele zájmu.

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

Poznámky

Některé pomocné texty, jako jsou záhlaví, poznámky pod čarou nebo poznámky, nemusí být zahrnuty.

Platí pro

Viz také