IJavaMethod::GetBodyRange

This method returns the range of text containing the method's block statement, beginning with a left bracket ({) and ending with a right bracket (}). These values are expressed in character units relative to the compile unit's text buffer.

Syntax

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

Sub GetBodyRange(pnStart As Long, pnLength As Long)

Parameters

pnStart

Long. Position in the text buffer to begin.

pnLength

Long. Block statement length in characters.