TX Text Control .NET Server

LineNumber 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 line number in the XML document that contains the error. If the property value is zero, there is no information about the line number.

Syntax

public int LineNumber { get; }

Examples

The following example uses XmlErrorEventArgs.LineNumber while handling XmlNotWellFormed.

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

Limitations

Read only.