共用方式為


IVsTextLayer.BaseLineIndexToLocal 方法

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

語法

'宣告
Function BaseLineIndexToLocal ( _
    iBaseLine As Integer, _
    iBaseIndex As Integer, _
    <OutAttribute> ByRef piLocalLine As Integer, _
    <OutAttribute> ByRef piLocalIndex As Integer _
) As Integer
int BaseLineIndexToLocal(
    int iBaseLine,
    int iBaseIndex,
    out int piLocalLine,
    out int piLocalIndex
)
int BaseLineIndexToLocal(
    [InAttribute] int iBaseLine, 
    [InAttribute] int iBaseIndex, 
    [OutAttribute] int% piLocalLine, 
    [OutAttribute] int% piLocalIndex
)
abstract BaseLineIndexToLocal : 
        iBaseLine:int * 
        iBaseIndex:int * 
        piLocalLine:int byref * 
        piLocalIndex:int byref -> int
function BaseLineIndexToLocal(
    iBaseLine : int, 
    iBaseIndex : int, 
    piLocalLine : int, 
    piLocalIndex : int
) : int

參數

  • iBaseLine
    類型:Int32

    [in]

  • iBaseIndex
    類型:Int32

    [in]

  • piLocalLine
    類型:Int32%

    [out]

  • piLocalIndex
    類型:Int32%

    [out]

傳回值

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

備註

COM 簽章

從 textmgr.idl:

HRESULT IVsTextLayer::BaseLineIndexToLocal(
   [in] long iBaseLine,
   [in] CharIndex iBaseIndex,
   [out] long *piLocalLine,
   [out] CharIndex *piLocalIndex
);

.NET Framework 安全性

請參閱

參考

IVsTextLayer 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間