다음을 통해 공유


IVsLanguageClipboardOps.TextFromData Method

Render this data object to text.

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

Syntax

‘선언
Function TextFromData ( _
    pTextLayer As IVsTextLayer, _
    pDO As IDataObject, _
    <OutAttribute> ptdfFlags As LTE_TEXTDATAFLAGS(), _
    <OutAttribute> ByRef pbstrText As String _
) As Integer
int TextFromData(
    IVsTextLayer pTextLayer,
    IDataObject pDO,
    LTE_TEXTDATAFLAGS[] ptdfFlags,
    out string pbstrText
)
int TextFromData(
    [InAttribute] IVsTextLayer^ pTextLayer, 
    [InAttribute] IDataObject^ pDO, 
    [OutAttribute] array<LTE_TEXTDATAFLAGS>^ ptdfFlags, 
    [OutAttribute] String^% pbstrText
)
abstract TextFromData : 
        pTextLayer:IVsTextLayer * 
        pDO:IDataObject * 
        ptdfFlags:LTE_TEXTDATAFLAGS[] byref * 
        pbstrText:string byref -> int 
function TextFromData(
    pTextLayer : IVsTextLayer, 
    pDO : IDataObject, 
    ptdfFlags : LTE_TEXTDATAFLAGS[], 
    pbstrText : String
) : 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::TextFromData(
   [in] IVsTextLayer *pTextLayer, 
   [in] IDataObject *pDO, 
   [out] LTE_TEXTDATAFLAGS *ptdfFlags, 
   [out, retval] BSTR *pbstrText
);

If you return S_OK to IsTextData , then the environment calls TextFromData to prompt you to return the text of the data object.

.NET Framework Security

See Also

Reference

IVsLanguageClipboardOps Interface

Microsoft.VisualStudio.TextManager.Interop Namespace