Ink.ClipboardPaste Method
Ink.ClipboardPaste Method |
Pastes an IDataObject from the Clipboard to this Ink object.
Definition
Visual Basic .NET Public Function ClipboardPaste() As Strokes C# public Strokes ClipboardPaste(); Managed C++ public: Strokes* ClipboardPaste();
Return Value
Microsoft.Ink.Strokes. Returns the Strokes collection that is pasted to the Ink object.
Remarks
An exception is thrown if an unexpected error occurs while accessing the Clipboard . If no error occurs but the Clipboard does not contain a format that can be pasted into an Ink object—either ink serialized format (ISF) or tInk—then this method returns
null
(Nothing
in Microsoft® Visual Basic® .NET) and no exception is thrown.Security Alert: If using under partial trust, this method requires UIPermissionClipboard.AllClipboard permission. See Security And Trust for more information.
Examples
This C# example pastes an object from the Clipboard to an InkCollector object, theInkCollector.
try { theInkCollector.Ink.ClipboardPaste(); } catch { // Exception handling code goes here. }
This Visual Basic .NET example pastes an object from the Clipboard to an InkCollector object, theInkCollector.
Try theInkCollector.Ink.ClipboardPaste() Catch 'Exception handling code goes here. End Try
See Also