TX Text Control .NET for WPF

Baseline Property

Property|Introduced in 10.1
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets the line's baseline position. The value is given in twips with an origin at the upper left corner of the document. The relationship between the upper left corner of the document and the upper left corner of the visible portion of the document can be obtained with the TextControl.ScrollLocation property.

Syntax

public int Baseline { get; }

Examples

The following example examines the first line in a short document by using Line.Baseline.

textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Line line = textControl.Lines[1];

Console.WriteLine($"Baseline: {line.Baseline}");
Console.WriteLine("Line is ready for use.");

Limitations

Read only.