다음을 통해 공유


IVsTextImageUtilities.SaveTextImageToMemory Method

Definition

Saves a text image to memory.

public:
 int SaveTextImageToMemory(Microsoft::VisualStudio::TextManager::Interop::IVsTextImage ^ pImage, System::UInt32 vstffIn, System::UInt32 cbData, cli::array <System::Byte> ^ pData, [Runtime::InteropServices::Out] System::UInt32 % pcbWritten, [Runtime::InteropServices::Out] System::UInt32 % pvstffOut);
int SaveTextImageToMemory(Microsoft::VisualStudio::TextManager::Interop::IVsTextImage const & pImage, unsigned int vstffIn, unsigned int cbData, std::Array <byte> const & pData, [Runtime::InteropServices::Out] unsigned int & pcbWritten, [Runtime::InteropServices::Out] unsigned int & pvstffOut);
public int SaveTextImageToMemory (Microsoft.VisualStudio.TextManager.Interop.IVsTextImage pImage, uint vstffIn, uint cbData, byte[] pData, out uint pcbWritten, out uint pvstffOut);
abstract member SaveTextImageToMemory : Microsoft.VisualStudio.TextManager.Interop.IVsTextImage * uint32 * uint32 * byte[] * uint32 * uint32 -> int
Public Function SaveTextImageToMemory (pImage As IVsTextImage, vstffIn As UInteger, cbData As UInteger, pData As Byte(), ByRef pcbWritten As UInteger, ByRef pvstffOut As UInteger) As Integer

Parameters

pImage
IVsTextImage

[in] The text image.

vstffIn
UInt32

[in] Instructions for text format and detection.

cbData
UInt32

[in] The size of the data in bytes.

pData
Byte[]

[out] The data.

pcbWritten
UInt32

[out] The length of the data written to memory.

pvstffOut
UInt32

[out] The format used.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

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

Applies to