TextPattern.DocumentRange Eigenschaft

Definition

Ruft einen Textbereich ab, der den Haupttext eines Dokuments einschließt.

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

Eigenschaftswert

Beispiele

Im folgenden Codebeispiel ist die TargetTextPattern-Membervariable ein TextPattern Objekt, das von einem textanbieter von Interesse abgerufen wird.

// 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

Hinweise

Einige Hilfstexte wie Kopfzeilen, Fußnoten oder Anmerkungen sind möglicherweise nicht enthalten.

Gilt für:

Weitere Informationen