DesignIntf.IDesigner60.CanPaste
Delphi
function CanPaste: Boolean;
C++
virtual bool __fastcall CanPaste() = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | DesignIntf.pas DesignIntf.hpp |
DesignIntf | IDesigner60 |
Description
Indicates whether the user can paste the contents of the clipboard into the designer.
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.