IVsTextStorage::Storage_GetPositionOfLineIndex Method (Int32, Int32, Int32)

 

Gets the position in the storage of the specified line index.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

int Storage_GetPositionOfLineIndex(
	int iLine,
	int iIndex,
	[OutAttribute] int% piPosition
)

Parameters

iLine
Type: System::Int32

[in] The line number of interest.

iIndex
Type: System::Int32

[in] The index of interest.

piPosition
Type: System::Int32

[out] The position of the specified line index.

Return Value

Type: System::Int32

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

From textmgr.idl:

HRESULT IVsTextStorage::Storage_GetPositionOfLineIndex(
   [in] long iLine,
   [in] CharIndex iIndex,
   [out] long *piPosition
);
Return to top
Show: