IVsTextImageUtilities.LoadTextImageFromFile Method

Definition

Loads a text image from the specified file.

public:
 int LoadTextImageFromFile(System::String ^ pszFileName, Microsoft::VisualStudio::TextManager::Interop::IVsTextImage ^ pImage, System::UInt32 vstffIn, [Runtime::InteropServices::Out] System::UInt32 % pvstffOut);
int LoadTextImageFromFile(std::wstring const & pszFileName, Microsoft::VisualStudio::TextManager::Interop::IVsTextImage const & pImage, unsigned int vstffIn, [Runtime::InteropServices::Out] unsigned int & pvstffOut);
public int LoadTextImageFromFile (string pszFileName, Microsoft.VisualStudio.TextManager.Interop.IVsTextImage pImage, uint vstffIn, out uint pvstffOut);
abstract member LoadTextImageFromFile : string * Microsoft.VisualStudio.TextManager.Interop.IVsTextImage * uint32 * uint32 -> int
Public Function LoadTextImageFromFile (pszFileName As String, pImage As IVsTextImage, vstffIn As UInteger, ByRef pvstffOut As UInteger) As Integer

Parameters

pszFileName
String

[in] The name of the file.

pImage
IVsTextImage

[in] The text image to load.

vstffIn
UInt32

[in] Instructions for text format and detection.

pvstffOut
UInt32

[out] The text 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::LoadTextImageFromFile(  
   [in] LPCOLESTR pszFilename,  
   [in] IVsTextImage * pImage,  
   [in] VSTFF vstffIn  
   [out, retval] VSTFF * pvstffOut  
);  

Applies to