語言

TextPattern.DocumentRange 屬性

定義

會取得一個包含文件主文的文字範圍。

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

屬性值

範例

在以下程式碼範例中,targetTextPattern 成員變數是從感興趣的文字提供者取得的 TextPattern 物件。

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

備註

部分輔助文字如標頭、腳註或註解可能未被包含。

適用於

另請參閱