VsTextViewClass::GetNearestPosition Method (Int32, Int32, Int32, Int32)
Visual Studio 2015
Converts a line and column index to a text stream position.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
public: virtual int GetNearestPosition( int iLine, int iCol, [OutAttribute] int% piPos, [OutAttribute] int% piVirtualSpaces )
Parameters
- iLine
-
Type:
System::Int32
[in] Integer containing the line index.
- iCol
-
Type:
System::Int32
[in] Integer containing the column index. Viewcol coordinates might include virtual space.
- piPos
-
Type:
System::Int32
[out] Pointer to an integer containing the position in the text stream.
- piVirtualSpaces
-
Type:
System::Int32
[out] Pointer to an integer containing the number of virtual spaces.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: