IVsLanguageClipboardOps::DataObjectRendered Method (IVsTextLines^, UInt32, array<TextSpan>^)
Visual Studio 2015
Allows changes to a data object after it is inserted.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int DataObjectRendered( IVsTextLines^ pTextLines, unsigned int dwHint, array<TextSpan>^ ptsInsertedText )
Parameters
- pTextLines
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^
[in] Pointer to the text buffer containing the data object.
- dwHint
-
Type:
System::UInt32
[in] Indicates the origin of the text (view or action) for the data object that was just rendered. For more information, see DATA_OBJECT_RENDER_HINT.
- ptsInsertedText
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^
[in] Specifies the span of the newly inserted text, in buffer coordinates.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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).
Show: