Skip to content

Latest commit

 

History

History
115 lines (95 loc) · 2.89 KB

nf-tom-itextrange2-setformattedtext2.md

File metadata and controls

115 lines (95 loc) · 2.89 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.ITextRange2.SetFormattedText2
ITextRange2::SetFormattedText2 (tom.h)
Sets the text of this range to the formatted text of the specified range.
ITextRange2 interface [Windows Controls]
SetFormattedText2 method
ITextRange2.SetFormattedText2
ITextRange2::SetFormattedText2
SetFormattedText2
SetFormattedText2 method [Windows Controls]
SetFormattedText2 method [Windows Controls]
ITextRange2 interface
controls.itextrange2_setformattedtext2
tom/ITextRange2::SetFormattedText2
controls\itextrange2_setformattedtext2.htm
Controls
151be9ee-da5d-4e50-a12e-0473cf1c7d91
12/05/2018
ITextRange2 interface [Windows Controls],SetFormattedText2 method, ITextRange2.SetFormattedText2, ITextRange2::SetFormattedText2, SetFormattedText2, SetFormattedText2 method [Windows Controls], SetFormattedText2 method [Windows Controls],ITextRange2 interface, controls.itextrange2_setformattedtext2, tom/ITextRange2::SetFormattedText2
tom.h
Windows
Windows 8 [desktop apps only]
Windows Server 2012 [desktop apps only]
Msftedit.dll
Windows
19H1
ITextRange2::SetFormattedText2
tom/ITextRange2::SetFormattedText2
c++
APIRef
kbSyntax
COM
Msftedit.dll
ITextRange2.SetFormattedText2

ITextRange2::SetFormattedText2

-description

Sets the text of this range to the formatted text of the specified range.

-parameters

-param pRange [in]

Type: ITextRange2*

The range that contains the formatted text that replaces the text of this 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 about COM error codes, see Error Handling in COM.

Return code Description
E_INVALIDARG
Invalid argument.
E_ACCESSDENIED
Write access is denied.
E_OUTOFMEMORY
Insufficient memory.

-see-also

ITextRange2

ITextRange2::GetFormattedText2