Partager via


IVsLanguageClipboardOps.IsTextData Method

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

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

Syntax

'Déclaration
Function IsTextData ( _
    pDO As IDataObject _
) As Integer
int IsTextData(
    IDataObject pDO
)
int IsTextData(
    [InAttribute] IDataObject^ pDO
)
abstract IsTextData : 
        pDO:IDataObject -> int 
function IsTextData(
    pDO : IDataObject
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsLanguageClipboardOps::IsTextData(
   [in] IDataObject *pDO
);

Use this method to evaluate whether the data object is of appropriate format for your application. If you are able to read the format of the data object and translate this format into text, then return S_OK. The environment then calls TextFromData to prompt you to generate text from out of the data object.

.NET Framework Security

See Also

Reference

IVsLanguageClipboardOps Interface

Microsoft.VisualStudio.TextManager.Interop Namespace