Skip to content

Latest commit

 

History

History
83 lines (64 loc) · 2.28 KB

nf-tom-itextdocument2-range2.md

File metadata and controls

83 lines (64 loc) · 2.28 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.ITextDocument2.Range2
ITextDocument2::Range2 (tom.h)
Retrieves a new text range for the active story of the document.
ITextDocument2 interface [Windows Controls]
Range2 method
ITextDocument2.Range2
ITextDocument2::Range2
Range2
Range2 method [Windows Controls]
Range2 method [Windows Controls]
ITextDocument2 interface
controls.itextdocument2_range2
tom/ITextDocument2::Range2
controls\itextdocument2_range2.htm
Controls
e0cd3788-de0e-4b57-8f24-f0897e2b0bed
12/05/2018
ITextDocument2 interface [Windows Controls],Range2 method, ITextDocument2.Range2, ITextDocument2::Range2, Range2, Range2 method [Windows Controls], Range2 method [Windows Controls],ITextDocument2 interface, controls.itextdocument2_range2, tom/ITextDocument2::Range2
tom.h
Windows
Windows 8 [desktop apps only]
Windows Server 2012 [desktop apps only]
Msftedit.dll
Windows
19H1
ITextDocument2::Range2
tom/ITextDocument2::Range2
c++
APIRef
kbSyntax
COM
Msftedit.dll
ITextDocument2.Range2

ITextDocument2::Range2

-description

Retrieves a new text range for the active story of the document.

-parameters

-param cpActive [in]

Type: long

The active end of the new text range. The default value is 0; that is, the beginning of the story.

-param cpAnchor [in]

Type: long

The anchor end of the new text range. The default value is 0.

-param ppRange [out, retval]

Type: ITextRange2**

The new text range.

-returns

Type: HRESULT

If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.

-see-also

ITextDocument2