CanPaste Property

See Also                  Applies To        

Specifies whether the Clipboard contains data that the object supports.

Syntax

object.CanPaste

The CanPaste property syntax has these parts:

Part Description
object Required. A valid object.

Return Values

The CanPaste property return values are:

Value Description
True The object can receive information pasted from the Clipboard.
False The object cannot receive information pasted from the Clipboard.

Remarks

CanPaste is read-only.

If the Clipboard data is in a format that the object does not support, the CanPaste property is False. For example, if you try to paste a bitmap into an object that only supports text, CanPaste will be False.