TX Text Control .NET for WPF

LinePosition Property

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

Description

Gets the character position within the line where the error occurred. If the property value is zero, there is no information about the line position.

Syntax

public int LinePosition { get; }

Examples

The following example uses XmlErrorEventArgs.LinePosition while handling XmlNotWellFormed.

textControl.XmlNotWellFormed += (_, e) =>
{
    Console.WriteLine($"Line Position: {e.LinePosition}");
};

Limitations

Read only.