VsTextViewClass::GetLineAndColumn Method (Int32, Int32, Int32)
Visual Studio 2015
Converts a text stream position to a line and column index.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
public: virtual int GetLineAndColumn( int iPos, [OutAttribute] int% piLine, [OutAttribute] int% piIndex )
Parameters
- iPos
-
Type:
System::Int32
[in] Integer containing the position in the text stream.
- piLine
-
Type:
System::Int32
[out] Pointer containing the line index corresponding to the stream position.
- piIndex
-
Type:
System::Int32
[out] Pointer containing the column index corresponding to the stream position.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: