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 spacing between characters in a character run in twips. One twip = (1/20 pt) or ( 1/1440 in). This number can be negative (decreased spacing) or positive (increased spacing).

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

The minimum value is -1584 pts and the maximum value is 1584 pts. Values beyond this will be automatically adjusted.

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

Example
Code Block
csharp
csharp
titleC#

          //--- Return CharacterSpacing
          int charSpacing = oFont.CharacterSpacing;

          //--- Set CharacterSpacing to 2 points
          oFont.CharacterSpacing = 40;
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Return CharacterSpacing
          Dim charSpacing As Integer = oFont.CharacterSpacing

          '--- Set CharacterSpacing to 2 points
          oFont.CharacterSpacing = 40