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

屬性值

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

備註

可能不會包含某些輔助文字,例如頁首、註腳或注釋。

適用於

另請參閱