Skip to content

Latest commit

 

History

History
115 lines (96 loc) · 2.88 KB

nf-tom-itextstory-setformattedtext.md

File metadata and controls

115 lines (96 loc) · 2.88 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.ITextStory.SetFormattedText
ITextStory::SetFormattedText (tom.h)
Replaces a story’s text with specified formatted text.
ITextStory interface [Windows Controls]
SetFormattedText method
ITextStory.SetFormattedText
ITextStory::SetFormattedText
SetFormattedText
SetFormattedText method [Windows Controls]
SetFormattedText method [Windows Controls]
ITextStory interface
controls.itextstory_setformattedtext
tom/ITextStory::SetFormattedText
controls\itextstory_setformattedtext.htm
Controls
ddc77bfe-06de-43e6-9d74-f1b3531c9416
12/05/2018
ITextStory interface [Windows Controls],SetFormattedText method, ITextStory.SetFormattedText, ITextStory::SetFormattedText, SetFormattedText, SetFormattedText method [Windows Controls], SetFormattedText method [Windows Controls],ITextStory interface, controls.itextstory_setformattedtext, tom/ITextStory::SetFormattedText
tom.h
Windows
Windows 8 [desktop apps only]
Windows Server 2012 [desktop apps only]
Tom.idl
Windows
19H1
ITextStory::SetFormattedText
tom/ITextStory::SetFormattedText
c++
APIRef
kbSyntax
COM
tom.h
ITextStory.SetFormattedText

ITextStory::SetFormattedText

-description

Replaces a story’s text with specified formatted text.

-parameters

-param pUnk [in]

Type: IUnknown*

The formatted text to replace the story’s text.

-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.

-remarks

This method calls IUnknown::QueryInterface for an ITextRange2 interface.

-see-also

ITextStory