다음을 통해 공유


Ink.CanPaste Method (Object)

Returns a value that indicates whether the IDataObject can be converted to an Ink object.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public Function CanPaste ( _
    dataObject As Object _
) As Boolean
'Usage
Dim instance As Ink
Dim dataObject As Object
Dim returnValue As Boolean

returnValue = instance.CanPaste(dataObject)
public bool CanPaste (
    Object dataObject
)
public:
bool CanPaste (
    Object^ dataObject
)
public boolean CanPaste (
    Object dataObject
)
public function CanPaste (
    dataObject : Object
) : boolean
Not applicable.

Parameters

Return Value

true if the data can be converted to an Ink object; otherwise, false.

Remarks

If the supplied T:System.Windows.Forms.IDataObjectis a null reference (Nothing in Visual Basic) (Nothing in Microsoft Visual Basic.NET), then the data object on the Clipboard is used.

Security noteSecurity Note:

If using under partial trust, this method requires AllClipboard permission. See Security And Trust for more information.

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Ink Class
Ink Members
Microsoft.Ink Namespace
InkCollector