IVsTextImageUtilities::LoadTextImageFromMemory Method (IVsTextImage^, UInt32, UInt32, array<Byte>^, UInt32)

 

Loads a text image from memory.

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

int LoadTextImageFromMemory(
	IVsTextImage^ pImage,
	unsigned int vstffIn,
	unsigned int cbData,
	array<unsigned char>^ pData,
	[OutAttribute] unsigned int% pvstffOut
)

Parameters

pImage
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextImage^

[in] The text image to load.

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>^

[in] The data.

pvstffOut
Type: System::UInt32

[out] The format used.

Return Value

Type: System::Int32

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

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
);
Return to top
Show: