Share via


IVsTextImageUtilities.LoadTextImageFromMemory Method

Definition

Loads a text image from memory.

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

Parameters

pImage
IVsTextImage

[in] The text image to load.

vstffIn
UInt32

[in] Instructions for text format and detection.

cbData
UInt32

[in] The size of the data in bytes.

pData
Byte[]

[in] The data.

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::LoadTextImageFromMemory(  
   [in] IVsTextImage * pImage,  
   [in] VSTFF vstffIn,  
   [in] DWORD cbData,  
   [in,size_is(cbData)] const BYTE * pData,  
   [out, retval] VSTFF * pvstffOut  
);  

Applies to