IVsTextLayer::DeeperLayerLineIndexToLocal Method (UInt32, IVsTextLayer^, Int32, Int32, Int32, Int32)
Visual Studio 2015
Converts deeper layer line coordinates to local line coordinates.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int DeeperLayerLineIndexToLocal( unsigned int dwFlags, IVsTextLayer^ pTargetLayer, int iLayerLine, int iLayerIndex, [OutAttribute] int% piLocalLine, [OutAttribute] int% piLocalIndex )
Parameters
- dwFlags
-
Type:
System::UInt32
[in] ORing of the DeeperLayerLineIndexToLocalFlags enumeration.
- pTargetLayer
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextLayer^
[in] The targeted deeper layer.
- iLayerLine
-
Type:
System::Int32
[in] The targeted deeper layer line.
- iLayerIndex
-
Type:
System::Int32
[in] The targeted deeper layer line character index.
- piLocalLine
-
Type:
System::Int32
[out] The local line.
- piLocalIndex
-
Type:
System::Int32
[out] The local 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::DeeperLayerLineIndexToLocal( [in] DWORD dwFlags, [in] IVsTextLayer *pTargetLayer, [in] long iLayerLine, [in] CharIndex iLayerIndex, [out] long *piLocalLine, [out] CharIndex *piLocalIndex );
Show: