Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Sets or returns an int that represents the character scaling, stretching or compressing text horizontally as a percentage of its current size. CharacterScaling can be set to a value between 1 and 600 percent. Values beyond these will be automatically adjusted.

Signature
C#
C#
 public int CharacterScaling{ get; set; }
Signature
vb.net
vb.net
Public Property CharacterScaling() As Integer
Remarks

MS Word equivalent: Format menu > Font... > Character spacing tab > Scale:

Example
Code Block
csharp
csharp
titleC#

          //--- Return CharacterScaling
          int charScale = oFont.CharacterScaling;

          //--- Set CharacterScaling
          oFont.CharacterScaling = 100;
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Return CharacterScaling
          Dim charScale As Integer = oFont.CharacterScaling

          '--- Set CharacterScaling
          oFont.CharacterScaling = 100