Help Center

CRichEditCtx.GetTextFontNamemethod

Windowsmethoddocumented

Syntax

FUNCTION GetTextFontName () AS DWSTRING
Also documented as TextFontName — one description covers them all.

Parameters

NameDescription
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:4160
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class