TX Text Control .NET Server

Baseline Property

Property|Introduced in 10.1
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 a user-defined baseline alignment, in twips, of the style. Positive values moves the baseline to superscript, negative values move the baseline to subscript.

Syntax

public int Baseline { get; set; }

Examples

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

FormattingStyle formattingStyle = new InlineStyle("Emphasis");

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

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

Limitations

The property's value must be between -960 twips and 960 twips (48 pt).