IVsTextStorage.Storage_GetPositionOfLineIndex Method
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)
Syntax
声明
Function Storage_GetPositionOfLineIndex ( _
iLine As Integer, _
iIndex As Integer, _
<OutAttribute> ByRef piPosition As Integer _
) As Integer
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
- 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.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsTextStorage::Storage_GetPositionOfLineIndex(
[in] long iLine,
[in] CharIndex iIndex,
[out] long *piPosition
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.