IVsTextStorage.Storage_GetLineIndexOfPosition(Int32, Int32, Int32) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the line index of a position in the storage.
public:
int Storage_GetLineIndexOfPosition(int iPosition, [Runtime::InteropServices::Out] int % piLine, [Runtime::InteropServices::Out] int % piIndex);
int Storage_GetLineIndexOfPosition(int iPosition, [Runtime::InteropServices::Out] int & piLine, [Runtime::InteropServices::Out] int & piIndex);
public int Storage_GetLineIndexOfPosition (int iPosition, out int piLine, out int piIndex);
abstract member Storage_GetLineIndexOfPosition : int * int * int -> int
Public Function Storage_GetLineIndexOfPosition (iPosition As Integer, ByRef piLine As Integer, ByRef piIndex As Integer) As Integer
- iPosition
- Int32
[in] The position of interest.
- piLine
- Int32
[out] The line number of the position.
- piIndex
- Int32
[out] The index of the position.
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsTextStorage::Storage_GetLineIndexOfPosition(
[in] long iPosition,
[out] long *piLine,
[out] CharIndex *piIndex
);