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

 

Copy the specified text.

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

int Storage_CopyText(
	int iStartLine,
	int iStartIndex,
	int iBufMax,
	IntPtr pszDest,
	[OutAttribute] int% pcCharsCopied
)

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.

iBufMax
Type: System::Int32

[in] Size of pzeDest destination buffer.

pszDest
Type: System::IntPtr

[in] Destination buffer.

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.

From textmgr.idl:

HRESULT IVsTextStorage::Storage_CopyText(
   [in] long iStartLine,
   [in] CharIndex iStartIndex,
   [in] long iBufMax,
   [out] WCHAR *pszDest,
   [out] long *pcCharsCopied
);
Return to top
Show: