IVsLanguageClipboardOpsEx::IsTextDataEx Method (IDataObject^, IVsTextLines^, Int32)

 

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

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

int IsTextDataEx(
	IDataObject^ pDO,
	IVsTextLines^ pBuffer,
	[OutAttribute] int% pfIsTextData
)

Parameters

pDO
Type: Microsoft.VisualStudio.OLE.Interop::IDataObject^

The data object.

pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^

The buffer.

pfIsTextData
Type: System::Int32

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

Return Value

Type: System::Int32

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

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.

Return to top
Show: