Freigeben über


getLineNumber Method (C-C++)

 

Returns the line number where the current document event ends.

This is the line position of the first character after the text associated with the document event. This method is permitted to show position within the text associated with the text event.

Syntax

  
HRESULT getLineNumber(  
   [out, retval] int * pnLine);  

Parameters

pnLine[out, retval]
The line number. The pnLine is –1 if the Locator object is not associated with some source input or a position within the source input.

Return Value

S_OK
The value returned if line number returned successfully.

Versioning

Implemented in: MSXML 3.0 and later

Applies to

ISAXLocator Interface

See Also

getColumnNumber Method (C-C++)