Skip to content

Latest commit

 

History

History
142 lines (110 loc) · 3.31 KB

nf-tom-itextfont-setposition.md

File metadata and controls

142 lines (110 loc) · 3.31 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.ITextFont.SetPosition
ITextFont::SetPosition (tom.h)
Sets the amount that characters are offset vertically relative to the baseline.
ITextFont interface [Windows Controls]
SetPosition method
ITextFont.SetPosition
ITextFont::SetPosition
SetPosition
SetPosition method [Windows Controls]
SetPosition method [Windows Controls]
ITextFont interface
_win32_ITextFont_SetPosition
_win32_ITextFont_SetPosition_cpp
controls.ITextFont_SetPosition
controls._win32_ITextFont_SetPosition
tom/ITextFont::SetPosition
controls\ITextFont_SetPosition.htm
Controls
VS|Controls|~\controls\richedit\textobjectmodel\textobjectmodelreference\textobjectmodelinterfaces\setposition.htm
12/05/2018
ITextFont interface [Windows Controls],SetPosition method, ITextFont.SetPosition, ITextFont::SetPosition, SetPosition, SetPosition method [Windows Controls], SetPosition method [Windows Controls],ITextFont interface, _win32_ITextFont_SetPosition, _win32_ITextFont_SetPosition_cpp, controls.ITextFont_SetPosition, controls._win32_ITextFont_SetPosition, tom/ITextFont::SetPosition
tom.h
Windows
Windows Vista [desktop apps only]
Windows Server 2003 [desktop apps only]
Msftedit.dll
Windows
19H1
ITextFont::SetPosition
tom/ITextFont::SetPosition
c++
APIRef
kbSyntax
COM
Msftedit.dll
ITextFont.SetPosition

ITextFont::SetPosition

-description

Sets the amount that characters are offset vertically relative to the baseline.

-parameters

-param Value [in]

Type: float

The new amount of vertical offset, in floating-point points.

-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.
CO_E_RELEASED
The font object is attached to a range that has been deleted.
E_ACCESSDENIED
Write access is denied.
E_OUTOFMEMORY
Insufficient memory.

-remarks

Displayed text typically has a zero value for this property. Positive values raise the text, and negative values lower it.

-see-also

Conceptual

GetPosition

ITextFont

Reference

Text Object Model