IXmlLineInfo.LineNumber 屬性

定義

取得目前的行號。

public:
 property int LineNumber { int get(); };
public int LineNumber { get; }
member this.LineNumber : int
Public ReadOnly Property LineNumber As Integer

屬性值

Int32

目前的行號,如果沒有可用的行資訊 (例如 HasLineInfo() 傳回 false),則為 0。

備註

此屬性主要用於錯誤報表,但可以隨時呼叫。 起始值為 1。 與 結合時 LinePosition ,值為 1,1 表示檔的開頭。

適用於