IJavaSourceElement::GetRange

This method returns the starting 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

Long. Starting position, in character units relative to the compile unit's text buffer.

pnLength

Long. Length, in character units relative to the compile unit's text buffer.