CRichEditCtx.TextHeightmethod
Gets/sets the text height of the selected text or the word under the cursor.
Syntax
PRIVATE PROPERTY CRichEditCtx.TextHeight () AS LONG
Parameters
| Name | Description | |
|---|---|---|
ptSize | The 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