TextBlock.CharacterSpacing Property

Gets or sets the distance between characters of text in the control measured in 1000ths of the font size.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

public int CharacterSpacing { get; set; }

Property Value

Type: System.Int32
The distance between characters of text in the control measured in 1000ths of the font size. The default is 0.

As an example, if the font size is 20 pixels and you set the CharacterSpacing property to 500, 10 pixels will be added between each character of your text. (20 * 500/1000 = 10)

The CharacterSpacing property is inherited down the visual tree. Inherited values will take priority over default values and set values will take priority over inherited values.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2015 Microsoft