ITextServices::TxGetBaseLinePos method

Gets the base line position of the first visible line, in pixels, relative to the text services client rectangle. This permits aligning controls on their base lines.

Syntax


HRESULT TxGetBaseLinePos(
   LONG *pBaseLinePos
);

Parameters

pBaseLinePos

Type: LONG*

The base line position of the first visible line.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK.

If the method fails, the return value is the following HRESULT code. For more information on COM error codes, see Error Handling in COM.

Return codeDescription
E_NOTIMPL

Not implemented.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Textserv.h

DLL

Msftedit.dll

See also

ITextServices
Windowless Rich Edit Controls Overview

 

 

Show: