FilePosition Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the absolute file position in the XML document where the error occurred. If the property value is zero, there is no information about the file position.
Syntax
public int FilePosition { get; }Public ReadOnly Property FilePosition As IntegerExamples
The following example uses XmlErrorEventArgs.FilePosition while handling XmlNotWellFormed.
textControl.XmlNotWellFormed += (_, e) =>
{
Console.WriteLine($"File Position: {e.FilePosition}");
};AddHandler textControl.XmlNotWellFormed,
Sub(sender, e)
Console.WriteLine($"File Position: {e.FilePosition}")
End SubLimitations
Read only.