VsTextLineStorageClass.Storage_GetLineIndexOfPosition Method
Definition
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:
virtual int Storage_GetLineIndexOfPosition(int iPosition, [Runtime::InteropServices::Out] int % piLine, [Runtime::InteropServices::Out] int % piIndex) = Microsoft::VisualStudio::TextManager::Interop::IVsTextStorage::Storage_GetLineIndexOfPosition;
public:
virtual int Storage_GetLineIndexOfPosition(int iPosition, [Runtime::InteropServices::Out] int % piLine, [Runtime::InteropServices::Out] int % piIndex);
virtual int Storage_GetLineIndexOfPosition(int iPosition, [Runtime::InteropServices::Out] int & piLine, [Runtime::InteropServices::Out] int & piIndex);
public virtual int Storage_GetLineIndexOfPosition (int iPosition, out int piLine, out int piIndex);
abstract member Storage_GetLineIndexOfPosition : int * int * int -> int
override this.Storage_GetLineIndexOfPosition : int * int * int -> int
Public Overridable Function Storage_GetLineIndexOfPosition (iPosition As Integer, ByRef piLine As Integer, ByRef piIndex As Integer) As Integer
Parameters
- iPosition
- Int32
[in] The position of interest.
- piLine
- Int32
[out] The line number of the position.
- piIndex
- Int32
[out] The index of the position.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.