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

注釈

ヘッダー、脚注、注釈などの一部の補助テキストが含まれていない場合があります。

適用対象

こちらもご覧ください