Help Center

CRichEditCtx.TextHeightmethod

Gets/sets the text height of the selected text or the word under the cursor.

Windowsmethoddocumented

Syntax

PRIVATE PROPERTY CRichEditCtx.TextHeight () AS LONG

Parameters

NameDescription
ptSizeThe new text height in points.

Return value

(GET) The height of the selected text or the word under the cursor if there is not selection.

Description

Gets/sets the height of the selected text or the word under the cursor.

Remarks

To select text programatically, use the SetSel method.

Example

(GET) PROPERTY TextHeight () AS LONG (SET) PROPERTY TextHeight (BYVAL ptSize AS LONG)

Reference

  • Defined in AfxNova/CRichEditCtx.inc:4048
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class