Skip to content

Latest commit

 

History

History
164 lines (120 loc) · 3.54 KB

nf-tom-itextrange2-getrect.md

File metadata and controls

164 lines (120 loc) · 3.54 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.GetRect
ITextRange2::GetRect (tom.h)
Retrieves a rectangle of the specified type for the current range.
GetRect
GetRect method [Windows Controls]
GetRect method [Windows Controls]
ITextRange2 interface
ITextRange2 interface [Windows Controls]
GetRect method
ITextRange2.GetRect
ITextRange2::GetRect
controls.itextrange2_getrect
tom/ITextRange2::GetRect
tomAllowOffClient
tomClientCoord
tomObjectArg
tomTransform
controls\itextrange2_getrect.htm
Controls
14f0faab-ff37-4f86-a4ba-b6c207d7ddf0
12/05/2018
GetRect, GetRect method [Windows Controls], GetRect method [Windows Controls],ITextRange2 interface, ITextRange2 interface [Windows Controls],GetRect method, ITextRange2.GetRect, ITextRange2::GetRect, controls.itextrange2_getrect, tom/ITextRange2::GetRect, tomAllowOffClient, tomClientCoord, tomObjectArg, tomTransform
tom.h
Windows
Windows 8 [desktop apps only]
Windows Server 2012 [desktop apps only]
Msftedit.dll
Windows
19H1
ITextRange2::GetRect
tom/ITextRange2::GetRect
c++
APIRef
kbSyntax
COM
Msftedit.dll
ITextRange2.GetRect

ITextRange2::GetRect

-description

Retrieves a rectangle of the specified type for the current range.

-parameters

-param Type [in]

Type: long

The type of rectangle to return. This parameter can include one value from each of the following tables.

tomAllowOffClient

tomClientCoord

tomObjectArg

tomTransform

Use one of these values to indicate the vertical position:

TA_TOP Top edge of the bounding rectangle.
TA_BASELINE Base line of the text.
TA_BOTTOM Bottom edge of the bounding rectangle.
 

Use one of these values to indicate the horizontal position:

TA_LEFT Left edge of the bounding rectangle.
TA_CENTER Center of the bounding rectangle.
TA_RIGHT Right edge of the bounding rectangle.

-param pLeft [out]

Type: long*

The left rectangle coordinate.

-param pTop [out]

Type: long*

The top rectangle coordinate.

-param pRight [out]

Type: long*

The right rectangle coordinate.

-param pBottom [out]

Type: long*

The bottom rectangle coordinate.

-param pHit [out]

Type: long*

The hit-test value for the range.

-returns

Type: HRESULT

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

-see-also

ITextRange2