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

System.Xml.XmlTextReader.LineNumber Property

Gets the current line number. [Edit]

public int LineNumber { get; }

Value

A int containing the current line number. [Edit]

Remarks

This property is read-only.

The constructors initialize this property to one.

Note:

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.LinePosition 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