CRichEditCtx.TextFontNamemethod
Gets/sets the font name of the selected text or the word under the cursor.
Syntax
PRIVATE PROPERTY CRichEditCtx.TextFontName () AS DWSTRING
Parameters
| Name | Description | |
|---|---|---|
wszFaceName | (SET) The new font face name, e.g. "Times New Roman". |
Return value
(GET) The font face name.
(SET) A boolean true (-1) or false (0).
Description
Gets/sets the font face name of the selected text or the word under the cursor if there is not selection.
Remarks
To select text programatically, use the SetSel method.
Example
(GET) PROPERTY TextFontName () AS DWSTRING (SET) PROPERTY TextFontName (BYREF wszFaceName AS WSTRING)
Reference
- Defined in AfxNova/CRichEditCtx.inc:4139
- Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
- Topic: CRichEditCtx Class