VsTextLineStorageClass::Storage_GetPositionOfLineIndex Method (Int32, Int32, Int32)

 

Gets the line index of a position in the storage.

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

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

Parameters

iLine
Type: System::Int32

[in] The line number of the position.

iIndex
Type: System::Int32

[out] The index of the position.

piPosition
Type: System::Int32

[out] The position of interest.

Return Value

Type: System::Int32

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

Return to top
Show: