TextPattern.DocumentRange Properti

Definisi

Mendapatkan rentang teks yang menyertakan teks utama dokumen.

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

Nilai Properti

Contoh

Dalam contoh kode berikut, variabel anggota targetTextPattern adalah objek yang TextPattern diperoleh dari penyedia teks yang menarik.

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

Keterangan

Beberapa teks tambahan seperti header, catatan kaki, atau anotasi mungkin tidak disertakan.

Berlaku untuk

Lihat juga