Mono Class Library: System.Xml.XmlTextReader Overview | Members

System.Xml.XmlTextReader.LinePosition Property

Gets the current position in a line. [Edit]

public int LinePosition { get; }

Value

A int containing the current line position. [Edit]

Remarks

This property is read-only.

The constructors initialize this property to one, which indicates the first character of text in a line.

Note:

For example, <root>, contains the character 'r' at XmlTextReader.LinePosition equal to 2 and the character '>' at XmlTextReader.LinePosition equal to 6.

This property is most commonly used for error reporting, but can be called at any time.

The start of a document is indicated when this property is 1 and the XmlTextReader.LineNumber property is 1.

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0