Partager via


RichTextBlock.CharacterSpacing Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Property CharacterSpacing As Integer
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.

Remarks

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)

Version Information

Silverlight

Supported in: 5

Platforms

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