RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDesigner60.CanPaste Method

Indicates whether the user can paste the contents of the clipboard into the designer.

Pascal
function CanPaste: Boolean;
C++
__fastcall Boolean CanPaste();

CanPaste indicates whether the Paste command on the Edit menu should be grayed. When CanPaste returns true, the current selection in the designer can accept the contents of the clipboard. 

If the user subsequently chooses the Paste command, the PasteSelection method handles the details of pasting the contents of the clipboard. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!