Vcl.Clipbrd.TClipboard.GetComponent
Delphi
function GetComponent(Owner, Parent: TComponent): TComponent;
C++
System::Classes::TComponent* __fastcall GetComponent(System::Classes::TComponent* Owner, System::Classes::TComponent* Parent);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Clipbrd.pas Vcl.Clipbrd.hpp |
Vcl.Clipbrd | TClipboard |
Description
Retrieves a component from the clipboard.
Use GetComponent to retrieve a component that is stored on the clipboard.
Owner becomes the owner of the retrieved component and Parent becomes its parent. Owner is usually a form, but both parameters can be nil (Delphi) or NULL (C++).
Before a class is read from the clipboard, it must be registered by a call to RegisterClasses. If you try to read an unregistered class, you'll get an EClassNotFound exception.
See Also
Code Examples