共用方式為


IVsTextStorage.Storage_GetPositionOfLineIndex Method

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

Syntax

'宣告
Function Storage_GetPositionOfLineIndex ( _
    iLine As Integer, _
    iIndex As Integer, _
    <OutAttribute> ByRef piPosition As Integer _
) As Integer
'用途
Dim instance As IVsTextStorage
Dim iLine As Integer
Dim iIndex As Integer
Dim piPosition As Integer
Dim returnValue As Integer

returnValue = instance.Storage_GetPositionOfLineIndex(iLine, _
    iIndex, piPosition)
int Storage_GetPositionOfLineIndex(
    int iLine,
    int iIndex,
    out int piPosition
)
int Storage_GetPositionOfLineIndex(
    [InAttribute] int iLine, 
    [InAttribute] int iIndex, 
    [OutAttribute] int% piPosition
)
abstract Storage_GetPositionOfLineIndex : 
        iLine:int * 
        iIndex:int * 
        piPosition:int byref -> int 
function Storage_GetPositionOfLineIndex(
    iLine : int, 
    iIndex : int, 
    piPosition : int
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

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

.NET Framework Security

See Also

Reference

IVsTextStorage Interface

IVsTextStorage Members

Microsoft.VisualStudio.TextManager.Interop Namespace