Freigeben über


VsTextLineStorageClass.Storage_CopyText Method

Definition

Copy the specified text.

public:
 virtual int Storage_CopyText(int iStartLine, int iStartIndex, int iBufMax, IntPtr pszDest, [Runtime::InteropServices::Out] int % pcCharsCopied) = Microsoft::VisualStudio::TextManager::Interop::IVsTextStorage::Storage_CopyText;
public:
 virtual int Storage_CopyText(int iStartLine, int iStartIndex, int iBufMax, IntPtr pszDest, [Runtime::InteropServices::Out] int % pcCharsCopied);
public virtual int Storage_CopyText (int iStartLine, int iStartIndex, int iBufMax, IntPtr pszDest, out int pcCharsCopied);
abstract member Storage_CopyText : int * int * int * nativeint * int -> int
override this.Storage_CopyText : int * int * int * nativeint * int -> int
Public Overridable 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.

Implements

Applies to