Skip to content

Latest commit

 

History

History
128 lines (94 loc) · 3.25 KB

nf-tom-itextdocument-range.md

File metadata and controls

128 lines (94 loc) · 3.25 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:tom.ITextDocument.Range
ITextDocument::Range (tom.h)
Retrieves a text range object for a specified range of content in the active story of the document.
ITextDocument interface [Windows Controls]
Range method
ITextDocument.Range
ITextDocument::Range
Range
Range method [Windows Controls]
Range method [Windows Controls]
ITextDocument interface
_win32_ITextDocument_Range
_win32_ITextDocument_Range_cpp
controls.ITextDocument_Range
controls._win32_ITextDocument_Range
tom/ITextDocument::Range
controls\ITextDocument_Range.htm
Controls
VS|Controls|~\controls\richedit\textobjectmodel\textobjectmodelreference\textobjectmodelinterfaces\range.htm
12/05/2018
ITextDocument interface [Windows Controls],Range method, ITextDocument.Range, ITextDocument::Range, Range, Range method [Windows Controls], Range method [Windows Controls],ITextDocument interface, _win32_ITextDocument_Range, _win32_ITextDocument_Range_cpp, controls.ITextDocument_Range, controls._win32_ITextDocument_Range, tom/ITextDocument::Range
tom.h
Windows
Windows Vista [desktop apps only]
Windows Server 2003 [desktop apps only]
Msftedit.dll
Windows
19H1
ITextDocument::Range
tom/ITextDocument::Range
c++
APIRef
kbSyntax
COM
Msftedit.dll
ITextDocument.Range

ITextDocument::Range

-description

Retrieves a text range object for a specified range of content in the active story of the document.

-parameters

-param cpActive

Type: long

The start position of new range. The default value is zero, which represents the start of the document.

-param cpAnchor

Type: long

The end position of new range. The default value is zero.

-param ppRange

Type: ITextRange**

Address of a pointer to a variable of type ITextRange that receives a pointer to the specified text range.

-returns

Type: HRESULT

If the method succeeds, it returns S_OK. If the method fails, it returns one of the following COM error codes. For more information on COM error codes, see Error Handling in COM.

Return code Description
E_INVALIDARG
Invalid argument.
E_OUTOFMEMORY
Insufficient memory.

-see-also

Conceptual

ITextDocument

ITextRange

Reference

Text Object Model