Freigeben über


IVsLanguageClipboardOpsEx.IsTextDataEx Method

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)

Syntax

'Declaration
Function IsTextDataEx ( _
    pDO As IDataObject, _
    pBuffer As IVsTextLines, _
    <OutAttribute> ByRef pfIsTextData As Integer _
) As Integer
int IsTextDataEx(
    IDataObject pDO,
    IVsTextLines pBuffer,
    out int pfIsTextData
)
int IsTextDataEx(
    [InAttribute] IDataObject^ pDO, 
    [InAttribute] IVsTextLines^ pBuffer, 
    [OutAttribute] int% pfIsTextData
)
abstract IsTextDataEx : 
        pDO:IDataObject * 
        pBuffer:IVsTextLines * 
        pfIsTextData:int byref -> int 
function IsTextDataEx(
    pDO : IDataObject, 
    pBuffer : IVsTextLines, 
    pfIsTextData : int
) : int

Parameters

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

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.

.NET Framework Security

See Also

Reference

IVsLanguageClipboardOpsEx Interface

Microsoft.VisualStudio.TextManager.Interop Namespace