TX Text Control .NET Server

FilePosition 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 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; }

Examples

The following example uses XmlErrorEventArgs.FilePosition while handling XmlNotWellFormed.

textControl.XmlNotWellFormed += (_, e) =>
{
    Console.WriteLine($"File Position: {e.FilePosition}");
};

Limitations

Read only.