Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

...

Wiki Markup
{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#
{excerpt}
{signature:C#}
 public int CharacterSpacing{ get; set; }
Signature
{signature}{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:

{signature}
{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:

{remarks}
{example}{code:csharp|title=C#}

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

          //--- Set CharacterSpacing to 2 points
          oFont.CharacterSpacing = 40;
        
{code}
{code:vb.net
|title=vb.net
}

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

          '--- Set CharacterSpacing to 2 points
          oFont.CharacterSpacing = 40
        {code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle