Freigeben über


IVsTextStorage.Storage_CopyText Method

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

Syntax

'Declaration
Function Storage_CopyText ( _
    iStartLine As Integer, _
    iStartIndex As Integer, _
    iBufMax As Integer, _
    pszDest As IntPtr, _
    <OutAttribute> ByRef pcCharsCopied As Integer _
) As Integer
'Usage
Dim instance As IVsTextStorage
Dim iStartLine As Integer
Dim iStartIndex As Integer
Dim iBufMax As Integer
Dim pszDest As IntPtr
Dim pcCharsCopied As Integer
Dim returnValue As Integer

returnValue = instance.Storage_CopyText(iStartLine, _
    iStartIndex, iBufMax, pszDest, pcCharsCopied)
int Storage_CopyText(
    int iStartLine,
    int iStartIndex,
    int iBufMax,
    IntPtr pszDest,
    out int pcCharsCopied
)
int Storage_CopyText(
    [InAttribute] int iStartLine, 
    [InAttribute] int iStartIndex, 
    [InAttribute] int iBufMax, 
    [InAttribute] IntPtr pszDest, 
    [OutAttribute] int% pcCharsCopied
)
abstract Storage_CopyText : 
        iStartLine:int * 
        iStartIndex:int * 
        iBufMax:int * 
        pszDest:IntPtr * 
        pcCharsCopied:int byref -> int 
function Storage_CopyText(
    iStartLine : int, 
    iStartIndex : int, 
    iBufMax : int, 
    pszDest : IntPtr, 
    pcCharsCopied : int
) : int

Parameters

  • iStartLine
    Type: System.Int32
    [in] Line containing the start of text to be copied.
  • iStartIndex
    Type: System.Int32
    [in] Starting character index within the line. Must be <= length of line.
  • pcCharsCopied
    Type: System.Int32%
    [out] Number of characters copied.

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_CopyText(
   [in] long iStartLine,
   [in] CharIndex iStartIndex,
   [in] long iBufMax,
   [out] WCHAR *pszDest,
   [out] long *pcCharsCopied
);

.NET Framework Security

See Also

Reference

IVsTextStorage Interface

IVsTextStorage Members

Microsoft.VisualStudio.TextManager.Interop Namespace