Help Center

CTextFont2.GetScalingmethod

Windowsmethoddocumented

Syntax

FUNCTION GetScaling () AS LONG
Also documented as Scaling — one description covers them all.

Parameters

NameDescription
ValueThe scaling percentage. Values from 0 through 255 are valid. For example, a value of 200 doubles the widths of characters while retaining the same height. A value of 0 has the same effect as a value of 100; that is, it turns scaling off.

Return value

The scaling percentage.

Description

Gets/sets the font horizontal scaling percentage.

Remarks

The font horizontal scaling percentage can range from 200, which doubles the widths of characters, to 0, where no scaling is performed. When the percentage is increased the height does not change.

Example

(GET) PROPERTY Scaling () AS LONG (SET) PROPERTY Scaling (BYVAL Value AS LONG)

Reference

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