Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TextBlock.CharacterSpacing Property

Silverlight

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.

Dependency property identifier field: CharacterSpacingProperty

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.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2015 Microsoft