Share via


IUIAutomationTextPattern::DocumentRange Property

Retrieves a text range that encloses the main text of a document.

Syntax

HRESULT IUIAutomationTextPattern::get_DocumentRange(IUIAutomationTextRange **range);

Parameters

  • range
    The address of a variable that receives a pointer to an IUIAutomationTextRange interface for the text range.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Some auxiliary text such as headers, footnotes, or annotations might not be included.