Share via


IVsTextLayer.LocalLineIndexToDeeperLayer Method

Definition

Converts local line coordinates to deeper layer line coordinates.

public:
 int LocalLineIndexToDeeperLayer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer ^ pTargetLayer, int iLocalLine, int iLocalIndex, [Runtime::InteropServices::Out] int % piTargetLine, [Runtime::InteropServices::Out] int % piTargetIndex);
int LocalLineIndexToDeeperLayer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer const & pTargetLayer, int iLocalLine, int iLocalIndex, [Runtime::InteropServices::Out] int & piTargetLine, [Runtime::InteropServices::Out] int & piTargetIndex);
public int LocalLineIndexToDeeperLayer (Microsoft.VisualStudio.TextManager.Interop.IVsTextLayer pTargetLayer, int iLocalLine, int iLocalIndex, out int piTargetLine, out int piTargetIndex);
abstract member LocalLineIndexToDeeperLayer : Microsoft.VisualStudio.TextManager.Interop.IVsTextLayer * int * int * int * int -> int
Public Function LocalLineIndexToDeeperLayer (pTargetLayer As IVsTextLayer, iLocalLine As Integer, iLocalIndex As Integer, ByRef piTargetLine As Integer, ByRef piTargetIndex As Integer) As Integer

Parameters

pTargetLayer
IVsTextLayer

[in] The targeted deeper layer.

iLocalLine
Int32

[in] The local line.

iLocalIndex
Int32

[in] The local line character index.

piTargetLine
Int32

[out] The target deeper layer line.

piTargetIndex
Int32

[out] The targeted deeper layer line character index.

Returns

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::LocalLineIndexToDeeperLayer(  
   [in] IVsTextLayer *pTargetLayer,  
   [in] long iLocalLine,  
   [in] CharIndex iLocalIndex,  
   [out] long *piTargetLine,  
   [out] CharIndex *piTargetIndex  
);  

Applies to