TX Text Control .NET Server

LinePosition Property

Property
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 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.