This documentation is archived and is not being maintained.

IVsCompletionSet.GetInitialExtent Method

Determines where to display the completion set list in the editor.

Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in microsoft.visualstudio.textmanager.interop.dll)

int GetInitialExtent (
	out int piLine,
	out int piStartCol,
	out int piEndCol
int GetInitialExtent (
	/** @attribute OutAttribute() */ /** @ref */ int piLine, 
	/** @attribute OutAttribute() */ /** @ref */ int piStartCol, 
	/** @attribute OutAttribute() */ /** @ref */ int piEndCol
JScript does not support passing value-type arguments by reference.



[out] Returns the line number of the characters that should not be obscured.


[out] Returns the column number of the first character that should not be obscured.


[out] Returns the last character in the span that should not be obscured. This must be on the same line as piLine.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From textmgr.idl:

HRESULT IVsCompletionSet::GetInitialExtent(
   [out] long *piLine,
   [out] long *piStartCol,
   [out] long *piEndCol

Use this method to tell the view where to place the completion box. By specifying values for piLine, piCol and piLen, you are indicating a span of text that the view should not obscure with the completion box. If the value of the piLen parameter is set to zero, then an anchor coordinate (piCol, piLine) must be provided.