Ink.CanPaste Method
Ink.CanPaste Method |
Returns a value that indicates whether the IDataObject can be converted to an Ink object.
Definition
Visual Basic .NET Public Function CanPaste( _
ByVal dataObject As Object _
) As BooleanC# public bool CanPaste(
object dataObject
);Managed C++ public: bool* CanPaste(
Object *dataObject
);
Parameters
dataObject System.Object. The IDataObject to inspect. The default value is null
, in which case the data object on the Clipboard is used.
Return Value
System.Boolean. Whether the data can be converted to an Ink object.
true
The data can be converted to an Ink object. false
The data cannot be converted to an Ink object.
Exceptions
ObjectDisposedException : The Ink object is disposed.
ThreadStateException :
Remarks
If the supplied IDataObject is
null
(Nothing
in Microsoft® Visual Basic® .NET), then the data object on the Clipboard is used.Security Alert: If using under partial trust, this method requires UIPermissionClipboard.AllClipboard permission. See Security And Trust for more information.
Examples
See Also