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