Partager via


IVsLanguageClipboardOps.DataObjectRendered Method

Definition

Allows changes to a data object after it is inserted.

public:
 int DataObjectRendered(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pTextLines, System::UInt32 dwHint, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsInsertedText);
public:
 int DataObjectRendered(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pTextLines, unsigned int dwHint, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsInsertedText);
int DataObjectRendered(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pTextLines, unsigned int dwHint, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & ptsInsertedText);
public int DataObjectRendered (Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pTextLines, uint dwHint, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] ptsInsertedText);
abstract member DataObjectRendered : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * uint32 * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Function DataObjectRendered (pTextLines As IVsTextLines, dwHint As UInteger, ptsInsertedText As TextSpan()) As Integer

Parameters

pTextLines
IVsTextLines

[in] Pointer to the text buffer containing the data object.

dwHint
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
TextSpan[]

[in] Specifies the span of the newly inserted text, in buffer coordinates.

Returns

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).

Applies to