TX Text Control .NET Server

CharacterScaling Property

Property|Introduced in 30.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets or sets the style's character scaling, in percent of the average character width.

Syntax

public int CharacterScaling { get; set; }

Examples

The following example creates a reusable emphasis style and adds it to the document by using FormattingStyle.CharacterScaling.

FormattingStyle formattingStyle = new InlineStyle("Emphasis");

formattingStyle.CharacterScaling = 10;
Console.WriteLine($"Character Scaling used by Formatting Style: {formattingStyle.CharacterScaling}");

textControl.InlineStyles.Add((InlineStyle)formattingStyle);