Compartir a través de


IVsTextImageUtilities.SaveTextImageToFile Method

Definition

Saves a text image to a file.

public:
 int SaveTextImageToFile(System::String ^ pszFileName, Microsoft::VisualStudio::TextManager::Interop::IVsTextImage ^ pImage, System::UInt32 vstffIn, [Runtime::InteropServices::Out] System::UInt32 % pvstffOut);
int SaveTextImageToFile(std::wstring const & pszFileName, Microsoft::VisualStudio::TextManager::Interop::IVsTextImage const & pImage, unsigned int vstffIn, [Runtime::InteropServices::Out] unsigned int & pvstffOut);
public int SaveTextImageToFile (string pszFileName, Microsoft.VisualStudio.TextManager.Interop.IVsTextImage pImage, uint vstffIn, out uint pvstffOut);
abstract member SaveTextImageToFile : string * Microsoft.VisualStudio.TextManager.Interop.IVsTextImage * uint32 * uint32 -> int
Public Function SaveTextImageToFile (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.

vstffIn
UInt32

[in] Instructions for text format and detection.

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

Applies to