Skip to content

Latest commit

 

History

History
110 lines (88 loc) · 2.85 KB

nf-tom-itextfont2-setduplicate2.md

File metadata and controls

110 lines (88 loc) · 2.85 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.ITextFont2.SetDuplicate2
ITextFont2::SetDuplicate2 (tom.h)
Sets the properties of this object by copying the properties of another text font object.
ITextFont2 interface [Windows Controls]
SetDuplicate2 method
ITextFont2.SetDuplicate2
ITextFont2::SetDuplicate2
SetDuplicate2
SetDuplicate2 method [Windows Controls]
SetDuplicate2 method [Windows Controls]
ITextFont2 interface
controls.itextfont2_setduplicate2
tom/ITextFont2::SetDuplicate2
controls\itextfont2_setduplicate2.htm
Controls
aaaafed9-be20-40a2-beed-09703970452f
12/05/2018
ITextFont2 interface [Windows Controls],SetDuplicate2 method, ITextFont2.SetDuplicate2, ITextFont2::SetDuplicate2, SetDuplicate2, SetDuplicate2 method [Windows Controls], SetDuplicate2 method [Windows Controls],ITextFont2 interface, controls.itextfont2_setduplicate2, tom/ITextFont2::SetDuplicate2
tom.h
Windows
Windows 8 [desktop apps only]
Windows Server 2012 [desktop apps only]
Msftedit.dll
Windows
19H1
ITextFont2::SetDuplicate2
tom/ITextFont2::SetDuplicate2
c++
APIRef
kbSyntax
COM
Msftedit.dll
ITextFont2.SetDuplicate2

ITextFont2::SetDuplicate2

-description

Sets the properties of this object by copying the properties of another text font object.

-parameters

-param pFont [in]

Type: ITextFont2*

The text font object to copy from.

-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_ACCESSDENIED
Write access is denied.
E_OUTOFMEMORY
Insufficient memory.

-remarks

Values with the tomUndefined attribute have no effect.

For an example of how to use font duplicates, see ITextRange::SetFont.

-see-also

ITextFont2

ITextFont2::GetDuplicate2