共用方式為


IVsTextLayer.DeeperLayerLineIndexToLocal Method

Converts deeper layer line coordinates to local line coordinates.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'宣告
Function DeeperLayerLineIndexToLocal ( _
    dwFlags As UInteger, _
    pTargetLayer As IVsTextLayer, _
    iLayerLine As Integer, _
    iLayerIndex As Integer, _
    <OutAttribute> ByRef piLocalLine As Integer, _
    <OutAttribute> ByRef piLocalIndex As Integer _
) As Integer
int DeeperLayerLineIndexToLocal(
    uint dwFlags,
    IVsTextLayer pTargetLayer,
    int iLayerLine,
    int iLayerIndex,
    out int piLocalLine,
    out int piLocalIndex
)
int DeeperLayerLineIndexToLocal(
    [InAttribute] unsigned int dwFlags, 
    [InAttribute] IVsTextLayer^ pTargetLayer, 
    [InAttribute] int iLayerLine, 
    [InAttribute] int iLayerIndex, 
    [OutAttribute] int% piLocalLine, 
    [OutAttribute] int% piLocalIndex
)
abstract DeeperLayerLineIndexToLocal : 
        dwFlags:uint32 * 
        pTargetLayer:IVsTextLayer * 
        iLayerLine:int * 
        iLayerIndex:int * 
        piLocalLine:int byref * 
        piLocalIndex:int byref -> int 
function DeeperLayerLineIndexToLocal(
    dwFlags : uint, 
    pTargetLayer : IVsTextLayer, 
    iLayerLine : int, 
    iLayerIndex : int, 
    piLocalLine : int, 
    piLocalIndex : int
) : int

Parameters

  • iLayerLine
    Type: System.Int32
    [in] The targeted deeper layer line.
  • iLayerIndex
    Type: System.Int32
    [in] The targeted deeper layer line character index.
  • piLocalIndex
    Type: System.Int32%
    [out] The local line character index.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code. The method returns VIEW_E_LOCATION_HIDDEN indicating that the coordinates you requested exist, but are hidden in the UI at present. The method returns E_INVALIDARG to indicate bad input parameters.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextLayer::DeeperLayerLineIndexToLocal(
   [in] DWORD dwFlags,
   [in] IVsTextLayer *pTargetLayer,
   [in] long iLayerLine,
   [in] CharIndex iLayerIndex,
   [out] long *piLocalLine,
   [out] CharIndex *piLocalIndex
);

.NET Framework Security

See Also

Reference

IVsTextLayer Interface

Microsoft.VisualStudio.TextManager.Interop Namespace