LineNumber Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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; }Public ReadOnly Property LineNumber As IntegerExamples
The following example uses XmlErrorEventArgs.LineNumber while handling XmlNotWellFormed.
textControl.XmlNotWellFormed += (_, e) =>
{
Console.WriteLine($"Line Number: {e.LineNumber}");
};AddHandler textControl.XmlNotWellFormed,
Sub(sender, e)
Console.WriteLine($"Line Number: {e.LineNumber}")
End SubLimitations
Read only.