Partager via


IVsTextLayer.DeeperLayerLineIndexToLocal Method

Definition

Converts deeper layer line coordinates to local line coordinates.

public:
 int DeeperLayerLineIndexToLocal(System::UInt32 dwFlags, Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer ^ pTargetLayer, int iLayerLine, int iLayerIndex, [Runtime::InteropServices::Out] int % piLocalLine, [Runtime::InteropServices::Out] int % piLocalIndex);
int DeeperLayerLineIndexToLocal(unsigned int dwFlags, Microsoft::VisualStudio::TextManager::Interop::IVsTextLayer const & pTargetLayer, int iLayerLine, int iLayerIndex, [Runtime::InteropServices::Out] int & piLocalLine, [Runtime::InteropServices::Out] int & piLocalIndex);
public int DeeperLayerLineIndexToLocal (uint dwFlags, Microsoft.VisualStudio.TextManager.Interop.IVsTextLayer pTargetLayer, int iLayerLine, int iLayerIndex, out int piLocalLine, out int piLocalIndex);
abstract member DeeperLayerLineIndexToLocal : uint32 * Microsoft.VisualStudio.TextManager.Interop.IVsTextLayer * int * int * int * int -> int
Public Function DeeperLayerLineIndexToLocal (dwFlags As UInteger, pTargetLayer As IVsTextLayer, iLayerLine As Integer, iLayerIndex As Integer, ByRef piLocalLine As Integer, ByRef piLocalIndex As Integer) As Integer

Parameters

dwFlags
UInt32

[in] ORing of the DeeperLayerLineIndexToLocalFlags enumeration.

pTargetLayer
IVsTextLayer

[in] The targeted deeper layer.

iLayerLine
Int32

[in] The targeted deeper layer line.

iLayerIndex
Int32

[in] The targeted deeper layer line character index.

piLocalLine
Int32

[out] The local line.

piLocalIndex
Int32

[out] The local 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::DeeperLayerLineIndexToLocal(  
   [in] DWORD dwFlags,  
   [in] IVsTextLayer *pTargetLayer,  
   [in] long iLayerLine,  
   [in] CharIndex iLayerIndex,  
   [out] long *piLocalLine,  
   [out] CharIndex *piLocalIndex  
);  

Applies to