次の方法で共有


VsTextBufferClass.IVsTextLines_GetPositionOfLine(Int32, Int32) Method

Definition

Returns the position number of a line.

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

Parameters

iLine
Int32

[in] Number of the line whose position is requested.

piPosition
Int32

[out] Pointer to the equivalent position number.

Returns

If the method succeeds, returns S_OK; otherwise, returns an error code.

Applies to