IJavaSourceElement::GetRange

This method returns the start position and length of the range of text containing the source element. These values are expressed in character units relative to the compile unitÆs text buffer.

Syntax

HRESULT GetRange(
[out] long* pnStart,
[out] long* pnLength
);

Sub GetRange(pnStart As Long, pnLength As Long)

Parameters

pnStart

The start position of the source elementÆs text range.

pnLength

The number of characters in the source elementÆs text range.