IVsTextLayer::LocalLineIndexToDeeperLayer Method (IVsTextLayer^, Int32, Int32, Int32, Int32)
Visual Studio 2015
Converts local line coordinates to deeper layer line coordinates.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int LocalLineIndexToDeeperLayer( IVsTextLayer^ pTargetLayer, int iLocalLine, int iLocalIndex, [OutAttribute] int% piTargetLine, [OutAttribute] int% piTargetIndex )
Parameters
- pTargetLayer
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextLayer^
[in] The targeted deeper layer.
- iLocalLine
-
Type:
System::Int32
[in] The local line.
- iLocalIndex
-
Type:
System::Int32
[in] The local line character index.
- piTargetLine
-
Type:
System::Int32
[out] The target deeper layer line.
- piTargetIndex
-
Type:
System::Int32
[out] The targeted deeper layer line character index.
Return Value
Type: System::Int32If 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.
From textmgr.idl:
HRESULT IVsTextLayer::LocalLineIndexToDeeperLayer( [in] IVsTextLayer *pTargetLayer, [in] long iLocalLine, [in] CharIndex iLocalIndex, [out] long *piTargetLine, [out] CharIndex *piTargetIndex );
Show: