IVsTextImageUtilities::SaveTextImageToMemory Method (IVsTextImage^, UInt32, UInt32, array<Byte>^, UInt32, UInt32)
Visual Studio 2015
Saves a text image to memory.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int SaveTextImageToMemory( IVsTextImage^ pImage, unsigned int vstffIn, unsigned int cbData, array<unsigned char>^ pData, [OutAttribute] unsigned int% pcbWritten, [OutAttribute] unsigned int% pvstffOut )
Parameters
- pImage
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextImage^
[in] The text image.
- vstffIn
-
Type:
System::UInt32
[in] Instructions for text format and detection.
- cbData
-
Type:
System::UInt32
[in] The size of the data in bytes.
- pData
-
Type:
array<System::Byte>^
[out] The data.
- pcbWritten
-
Type:
System::UInt32
[out] The length of the data written to memory.
- pvstffOut
-
Type:
System::UInt32
[out] The format used.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textfind.idl:
HRESULT IVsTextImageUtilities::SaveTextImageToMemory( [in] IVsTextImage * pImage, [in] VSTFF vstffIn, [in] DWORD cbData, [out, size_is(cbData), length_is(*pcbWritten)] BYTE * pData, [out] DWORD * pcbWritten, [out] VSTFF * pvstffOut );
Show: