IVsTextStorage.Storage_CopyText Method
Copy the specified text.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Declaração
Function Storage_CopyText ( _
iStartLine As Integer, _
iStartIndex As Integer, _
iBufMax As Integer, _
pszDest As IntPtr, _
<OutAttribute> ByRef pcCharsCopied As Integer _
) As Integer
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.
- 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.
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
- 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.