Vcl.Clipbrd.SetClipboard

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SetClipboard(NewClipboard: TClipboard): TClipboard;

C++

extern DELPHI_PACKAGE TClipboard* __fastcall SetClipboard(TClipboard* NewClipboard);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Clipbrd.pas
Vcl.Clipbrd.hpp
Vcl.Clipbrd Vcl.Clipbrd

Description

Replaces the single global clipboard instance with another clipboard object.

Use SetClipboard to replace the global clipboard instance with a customized descendant of TClipboard. SetClipboard returns the currently instantiated clipboard, if any. After replacing the global clipboard instance using SetClipboard, an application must free the old clipboard that is returned.

See Also