共用方式為


VsTextLineStorageClass.Storage_GetPositionOfLineIndex Method

Definition

Gets the line index of a position in the storage.

public:
 virtual int Storage_GetPositionOfLineIndex(int iLine, int iIndex, [Runtime::InteropServices::Out] int % piPosition) = Microsoft::VisualStudio::TextManager::Interop::IVsTextStorage::Storage_GetPositionOfLineIndex;
public:
 virtual int Storage_GetPositionOfLineIndex(int iLine, int iIndex, [Runtime::InteropServices::Out] int % piPosition);
 virtual int Storage_GetPositionOfLineIndex(int iLine, int iIndex, [Runtime::InteropServices::Out] int & piPosition);
public virtual int Storage_GetPositionOfLineIndex (int iLine, int iIndex, out int piPosition);
abstract member Storage_GetPositionOfLineIndex : int * int * int -> int
override this.Storage_GetPositionOfLineIndex : int * int * int -> int
Public Overridable Function Storage_GetPositionOfLineIndex (iLine As Integer, iIndex As Integer, ByRef piPosition As Integer) As Integer

Parameters

iLine
Int32

[in] The line number of the position.

iIndex
Int32

[out] The index of the position.

piPosition
Int32

[out] The position of interest.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to