TextPattern.DocumentRange Właściwość

Definicja

Pobiera zakres tekstu, który otacza główny tekst 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

Wartość właściwości

Przykłady

W poniższym przykładzie kodu zmienna składowa targetTextPattern jest obiektem uzyskanym TextPattern od interesującego dostawcy tekstu.

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

Uwagi

Niektóre teksty pomocnicze, takie jak nagłówki, przypisy dolne lub adnotacje, mogą nie być uwzględniane.

Dotyczy

Zobacz też