Baseline Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property Baseline As IntegerExamples
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);Dim formattingStyle As FormattingStyle = New InlineStyle("Emphasis")
formattingStyle.Baseline = 10
Console.WriteLine($"Baseline used by Formatting Style: {formattingStyle.Baseline}")
textControl.InlineStyles.Add(DirectCast(formattingStyle, InlineStyle))Limitations
The property's value must be between -960 twips and 960 twips (48 pt).