RichTextBlock.CharacterSpacing Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the uniform spacing between characters, in units of 1/1000 of an em.
public:
property int CharacterSpacing { int get(); void set(int value); };
int CharacterSpacing();
void CharacterSpacing(int value);
public int CharacterSpacing { get; set; }
var int32 = richTextBlock.characterSpacing;
richTextBlock.characterSpacing = int32;
Public Property CharacterSpacing As Integer
<RichTextBlock CharacterSpacing="int"/>
Property Value
int
The uniform spacing between characters, in units of 1/1000 of an em. The default is 0. Positive values increase tracking and loosen character spacing. Negative values decrease tracking and tighten the character spacing.
Examples
To see an example, see scenario 1, "Tracking (character spacing)", of the XAML text display sample.
Remarks
Tracking is the typographic term for an amount of space added or removed between all pairs of characters in a portion of text. This feature can be accessed through the CharacterSpacing property on TextBlock and RichTextBlock. CharacterSpacing is measured in 1/1000 of an "em". One "em" is equivalent to the current font size of the control. For example, an additional 14 pixels will be inserted between each character in a text control with FontSize="14"
and CharacterSpacing="1000"
.