次の方法で共有


IVsTextViewIntellisenseHost.GetContextLocation Method

Definition

public:
 int GetContextLocation(int iPos, int iLen, int fUseCaretPosition, cli::array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ prc, [Runtime::InteropServices::Out] int % piTopX);
int GetContextLocation(int iPos, int iLen, int fUseCaretPosition, std::Array <Microsoft::VisualStudio::OLE::Interop::RECT> const & prc, [Runtime::InteropServices::Out] int & piTopX);
public int GetContextLocation (int iPos, int iLen, int fUseCaretPosition, Microsoft.VisualStudio.OLE.Interop.RECT[] prc, out int piTopX);
abstract member GetContextLocation : int * int * int * Microsoft.VisualStudio.OLE.Interop.RECT[] * int -> int
Public Function GetContextLocation (iPos As Integer, iLen As Integer, fUseCaretPosition As Integer, prc As RECT(), ByRef piTopX As Integer) As Integer

Parameters

iPos
Int32

 

iLen
Int32

 

fUseCaretPosition
Int32

 

prc
RECT[]

 

piTopX
Int32

 

Returns

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

Implements

Remarks

From singlefileeditor.idl:

HRESULT IVsTextViewIntellisenseHost::GetContextLocation([in]long iPos, [in]long iLen, [in] bool fUseCaretPosition, [out]RECT *prc, [out]long *piTopX);  

Applies to