Condividi tramite


IVsLanguageClipboardOps.DataObjectRendered Method

Allows changes to a data object after it is inserted.

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

Syntax

'Declaration
Function DataObjectRendered ( _
    pTextLines As IVsTextLines, _
    dwHint As UInteger, _
    ptsInsertedText As TextSpan() _
) As Integer
int DataObjectRendered(
    IVsTextLines pTextLines,
    uint dwHint,
    TextSpan[] ptsInsertedText
)
int DataObjectRendered(
    [InAttribute] IVsTextLines^ pTextLines, 
    [InAttribute] unsigned int dwHint, 
    [InAttribute] array<TextSpan>^ ptsInsertedText
)
abstract DataObjectRendered : 
        pTextLines:IVsTextLines * 
        dwHint:uint32 * 
        ptsInsertedText:TextSpan[] -> int
function DataObjectRendered(
    pTextLines : IVsTextLines, 
    dwHint : uint, 
    ptsInsertedText : TextSpan[]
) : int

Parameters

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 textmgr.idl:

HRESULT IVsLanguageClipboardOps::DataObjectRendered(
   [in] IVsTextLines *pTextLines,
   [in] DWORD dwHint,
   [in] TextSpan *ptsInsertedText
);

Use this method to change how the text of a data object is shown after the text is rendered. This method allows you to customize your code in response to what types of views or action caused the data object rendering to occur (for example, a clipboard view or paste action).

.NET Framework Security

See Also

Reference

IVsLanguageClipboardOps Interface

Microsoft.VisualStudio.TextManager.Interop Namespace