Help Center

CRichEditCtx.TypographyOptionsmethod

Gets/sets the current state of the typography options of a rich edit control.

Windowsmethoddocumented

Syntax

PRIVATE PROPERTY CRichEditCtx.TypographyOptions () AS DWORD

Parameters

NameDescription
ptoSpecifies one or both of the following values.
TO_ADVANCEDTYPOGRAPHY. Advanced line breaking and line formatting is turned on.
TO_SIMPLELINEBREAK. Faster line breaking for simple text (requires TO_ADVANCEDTYPOGRAPHY).
fMaskA mask consisting of one or more of the flags in pto. Only the flags that are set in this mask will be set or cleared. This allows a single flag to be set or cleared without reading the current flag states.

Return value

(GET) Returns the current typography options.

(SET) A boolean true (-1) or false (0).

Description

Gets/sets the current state of the typography options of a rich edit control.

Remarks

You can turn on advanced line breaking by sending calling the (SET) TypographyOPtions property. Advanced line breaking is turned on automatically by the rich edit control when needed, such as for handling complex scripts like Arabic and Hebrew, and for mathematics. It is also needed for justified paragraphs, hyphenation, and other typographic features.

Example

(GET) PROPERTY TypographyOptions () AS DWORD (SET) PROPERTY TypographyOptions (BYVAL pto AS LONG, BYVAL fMask AS LONG)

Reference

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