public int[] GetRanges(
ISymbolDocument document,
int line,
int column)
{
int hr;
int cRanges;
int[] Ranges;
COMException Exception;
hr = SymMethod_GetRanges(m_Method, ((SymDocument)document).InternalDocument, line, column, 0, out cRanges, null);
if (hr < 0)
{
Exception = new COMException("Call to GetRanges failed.", hr);
throw Exception;
}
Ranges = new int[cRanges];
hr = SymMethod_GetRanges(m_Method, ((SymDocument)document).InternalDocument, line, column, cRanges, out cRanges, Ranges);
if (hr < 0)
{
Exception = new COMException("Call to GetRanges failed.", hr);
throw Exception;
}
return Ranges;
}