Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
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.



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

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

          //--- Set CharacterScaling
          oFont.CharacterScaling = 100;
        
{code}
{code:vb.net
|title=vb.net
}

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

          '--- Set CharacterScaling
          oFont.CharacterScaling = 100
        {code}

{example}
Signature
C#C#
Wiki Markup
{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.{excerpt}
{signature:C#}
 public int CharacterScaling{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property CharacterScaling() As Integer
Remarks
MS Word
{signature}
{remarks}MS Word equivalent: Format menu > Font... > Character spacing tab > Scale:
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle