共用方式為


IVsIntellisenseHost.GetContextFocalPoint 方法

傳回會被視為內容起點內容緩衝區中的位置。

命名空間:  Microsoft.VisualStudio.TextManager.Interop
組件:  Microsoft.VisualStudio.TextManager.Interop.8.0 (在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)

語法

'宣告
Function GetContextFocalPoint ( _
    <OutAttribute> pSpan As TextSpan(), _
    ByRef piLen As Integer _
) As Integer
int GetContextFocalPoint(
    TextSpan[] pSpan,
    ref int piLen
)
int GetContextFocalPoint(
    [OutAttribute] array<TextSpan>^ pSpan, 
    int% piLen
)
abstract GetContextFocalPoint : 
        pSpan:TextSpan[] byref * 
        piLen:int byref -> int
function GetContextFocalPoint(
    pSpan : TextSpan[], 
    piLen : int
) : int

參數

  • piLen
    類型:Int32%

    緩衝區的長度。

傳回值

類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。

備註

C++

從 singlefileeditor.idl:

HRESULT IVsIntellisenseHost::GetContextFocalPoint([out] TextSpan *pSpan, long *piLen);

.NET Framework 安全性

請參閱

參考

IVsIntellisenseHost 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間