Freigeben über


IVsCompletionSet.GetInitialExtent(Int32, Int32, Int32) Method

Definition

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

public:
 int GetInitialExtent([Runtime::InteropServices::Out] int % piLine, [Runtime::InteropServices::Out] int % piStartCol, [Runtime::InteropServices::Out] int % piEndCol);
int GetInitialExtent([Runtime::InteropServices::Out] int & piLine, [Runtime::InteropServices::Out] int & piStartCol, [Runtime::InteropServices::Out] int & piEndCol);
public int GetInitialExtent (out int piLine, out int piStartCol, out int piEndCol);
abstract member GetInitialExtent : int * int * int -> int
Public Function GetInitialExtent (ByRef piLine As Integer, ByRef piStartCol As Integer, ByRef piEndCol As Integer) As Integer

Parameters

piLine
Int32

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

piStartCol
Int32

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

piEndCol
Int32

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

Returns

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

Remarks

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.

Applies to