Partager via


IVsTextImageUtilities.SaveTextImageToFile Method

Saves a text image to a file.

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

Syntax

'Declaration
Function SaveTextImageToFile ( _
    pszFileName As String, _
    pImage As IVsTextImage, _
    vstffIn As UInteger, _
    <OutAttribute> ByRef pvstffOut As UInteger _
) As Integer
int SaveTextImageToFile(
    string pszFileName,
    IVsTextImage pImage,
    uint vstffIn,
    out uint pvstffOut
)
int SaveTextImageToFile(
    [InAttribute] String^ pszFileName, 
    [InAttribute] IVsTextImage^ pImage, 
    [InAttribute] unsigned int vstffIn, 
    [OutAttribute] unsigned int% pvstffOut
)
abstract SaveTextImageToFile : 
        pszFileName:string * 
        pImage:IVsTextImage * 
        vstffIn:uint32 * 
        pvstffOut:uint32 byref -> int
function SaveTextImageToFile(
    pszFileName : String, 
    pImage : IVsTextImage, 
    vstffIn : uint, 
    pvstffOut : uint
) : int

Parameters

  • vstffIn
    Type: System.UInt32

    [in] Instructions for text format and detection.

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsTextImageUtilities Interface

Microsoft.VisualStudio.TextManager.Interop Namespace