Help Center

CRichEditCtx.GetDocumentFontmethod

Windowsmethoddocumented

Syntax

FUNCTION GetDocumentFont () AS ITextFont2 PTR
Also documented as DocumentFont — one description covers them all.

Return value

A pointer to the ITextFont2 interface. When you have finished to use it, you must release it calling its Release method.

Description

Gets/sets a pointer to the ITextFont2 interface.

Examples

(GET) PROPERTY DocumentFont () AS ITextFont2 PTR (SET) PROPERTY DocumentFont (BYVAL pFont AS ITextFont2 PTR)

DIM pTextFont AS ITExtFont2 PTR pTextFont = pRichEdit.DocumentFont --or-- pTextFont = pRichEdit.GetDocumentFont ... ... ' // Release the pointer IUnknown_Release(pTextFont)

Reference

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