Partager via


IVsLanguageClipboardOpsEx.IsTextDataEx Method

Definition

Determines whether a data object contains data that can be rendered into text.

public:
 int IsTextDataEx(Microsoft::VisualStudio::OLE::Interop::IDataObject ^ pDO, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer, [Runtime::InteropServices::Out] int % pfIsTextData);
int IsTextDataEx(Microsoft::VisualStudio::OLE::Interop::IDataObject const & pDO, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pBuffer, [Runtime::InteropServices::Out] int & pfIsTextData);
public int IsTextDataEx (Microsoft.VisualStudio.OLE.Interop.IDataObject pDO, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pBuffer, out int pfIsTextData);
abstract member IsTextDataEx : Microsoft.VisualStudio.OLE.Interop.IDataObject * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * int -> int
Public Function IsTextDataEx (pDO As IDataObject, pBuffer As IVsTextLines, ByRef pfIsTextData As Integer) As Integer

Parameters

pDO
IDataObject

The data object.

pBuffer
IVsTextLines

The buffer.

pfIsTextData
Int32

[out] Zero (false) if the data object does not contain text data.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method is called for clipboard operations as well as drag/drop operations as long as IVsLanguageDragDropOps is not implemented. If it is implemented, then DragSetup is called instead for drag operations.

Applies to