IDiaEnumLineNumbers::Item

Retrieves a line number by means of an index.

Syntax

HRESULT Item ( 
   DWORD            index,
   IDiaLineNumber** lineNumber
);

Parameters

index

[in] Index of the IDiaLineNumber object to be retrieved. The index is in the range 0 to count-1, where count is returned by the IDiaEnumLineNumbers::get_Count method.

lineNumber

[out] Returns an IDiaLineNumber object representing the desired line number.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

See also