IVsLanguageClipboardOps.DataObjectRendered Method
Allows changes to a data object after it is inserted.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
‘선언
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
Parameters
- pTextLines
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines
[in] Pointer to the text buffer containing the data object.
- dwHint
Type: System.UInt32
[in] Indicates the origin of the text (view or action) for the data object that was just rendered. For more information, see DATA_OBJECT_RENDER_HINT.
- ptsInsertedText
Type: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[]
[in] Specifies the span of the newly inserted text, in buffer coordinates.
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::DataObjectRendered(
[in] IVsTextLines *pTextLines,
[in] DWORD dwHint,
[in] TextSpan *ptsInsertedText
);
Use this method to change how the text of a data object is shown after the text is rendered. This method allows you to customize your code in response to what types of views or action caused the data object rendering to occur (for example, a clipboard view or paste action).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.