IVsLanguageClipboardOps.DataObjectRendered 方法

,在插入后,允许访问数据对象的更改它。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Function DataObjectRendered ( _
    pTextLines As IVsTextLines, _
    dwHint As UInteger, _
    ptsInsertedText As TextSpan() _
) As Integer
int DataObjectRendered(
    IVsTextLines pTextLines,
    uint dwHint,
    TextSpan[] ptsInsertedText
)
int DataObjectRendered(
    [InAttribute] IVsTextLines^ pTextLines, 
    [InAttribute] unsigned int dwHint, 
    [InAttribute] array<TextSpan>^ ptsInsertedText
)
abstract DataObjectRendered : 
        pTextLines:IVsTextLines * 
        dwHint:uint32 * 
        ptsInsertedText:TextSpan[] -> int
function DataObjectRendered(
    pTextLines : IVsTextLines, 
    dwHint : uint, 
    ptsInsertedText : TextSpan[]
) : int

参数

  • dwHint
    类型:UInt32

    [in] 指示文本的源 (视图或事件) 呈现数据的对象。 有关更多信息,请参见 DATA_OBJECT_RENDER_HINT

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

HRESULT IVsLanguageClipboardOps::DataObjectRendered(
   [in] IVsTextLines *pTextLines,
   [in] DWORD dwHint,
   [in] TextSpan *ptsInsertedText
);

使用此方法更改数据对象的文本的显示方式,在文本呈现之后。 此方法允许您自定义代码以响应哪些类型的视图或事件导致呈现的数据对象发生 (例如,剪贴板视图或粘贴操作)。

.NET Framework 安全性

请参阅

参考

IVsLanguageClipboardOps 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间