,在插入后,允许访问数据对象的更改它。
命名空间: 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
参数
pTextLines
类型:Microsoft.VisualStudio.TextManager.Interop.IVsTextLines[in] 对包含数据对象的文本缓冲区的指针。
dwHint
类型:UInt32[in] 指示文本的源 (视图或事件) 呈现数据的对象。 有关更多信息,请参见 DATA_OBJECT_RENDER_HINT。
ptsInsertedText
类型:array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][in] 在缓冲区坐标指定新插入的文本的大小,。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsLanguageClipboardOps::DataObjectRendered(
[in] IVsTextLines *pTextLines,
[in] DWORD dwHint,
[in] TextSpan *ptsInsertedText
);
使用此方法更改数据对象的文本的显示方式,在文本呈现之后。 此方法允许您自定义代码以响应哪些类型的视图或事件导致呈现的数据对象发生 (例如,剪贴板视图或粘贴操作)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。