IVsTextStorage.Storage_CopyText(Int32, Int32, Int32, IntPtr, Int32) Method

Definition

Copy the specified text.

public:
 int Storage_CopyText(int iStartLine, int iStartIndex, int iBufMax, IntPtr pszDest, [Runtime::InteropServices::Out] int % pcCharsCopied);
public int Storage_CopyText (int iStartLine, int iStartIndex, int iBufMax, IntPtr pszDest, out int pcCharsCopied);
abstract member Storage_CopyText : int * int * int * nativeint * int -> int
Public Function Storage_CopyText (iStartLine As Integer, iStartIndex As Integer, iBufMax As Integer, pszDest As IntPtr, ByRef pcCharsCopied As Integer) As Integer

Parameters

iStartLine
Int32

[in] Line containing the start of text to be copied.

iStartIndex
Int32

[in] Starting character index within the line. Must be <= length of line.

iBufMax
Int32

[in] Size of pzeDest destination buffer.

pszDest
IntPtr

nativeint

[in] Destination buffer.

pcCharsCopied
Int32

[out] Number of characters copied.

Returns

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  
);  

Applies to