Share via


IVsTextImageUtilities.SaveTextImageToMemory Method

Saves a text image to memory.

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

Syntax

'Declaration
Function SaveTextImageToMemory ( _
    pImage As IVsTextImage, _
    vstffIn As UInteger, _
    cbData As UInteger, _
    <OutAttribute> pData As Byte(), _
    <OutAttribute> ByRef pcbWritten As UInteger, _
    <OutAttribute> ByRef pvstffOut As UInteger _
) As Integer
int SaveTextImageToMemory(
    IVsTextImage pImage,
    uint vstffIn,
    uint cbData,
    byte[] pData,
    out uint pcbWritten,
    out uint pvstffOut
)
int SaveTextImageToMemory(
    [InAttribute] IVsTextImage^ pImage, 
    [InAttribute] unsigned int vstffIn, 
    [InAttribute] unsigned int cbData, 
    [OutAttribute] array<unsigned char>^ pData, 
    [OutAttribute] unsigned int% pcbWritten, 
    [OutAttribute] unsigned int% pvstffOut
)
abstract SaveTextImageToMemory : 
        pImage:IVsTextImage * 
        vstffIn:uint32 * 
        cbData:uint32 * 
        pData:byte[] byref * 
        pcbWritten:uint32 byref * 
        pvstffOut:uint32 byref -> int
function SaveTextImageToMemory(
    pImage : IVsTextImage, 
    vstffIn : uint, 
    cbData : uint, 
    pData : byte[], 
    pcbWritten : uint, 
    pvstffOut : uint
) : int

Parameters

  • vstffIn
    Type: System.UInt32

    [in] Instructions for text format and detection.

  • pcbWritten
    Type: System.UInt32%

    [out] The length of the data written to memory.

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

.NET Framework Security

See Also

Reference

IVsTextImageUtilities Interface

Microsoft.VisualStudio.TextManager.Interop Namespace