Vcl.Clipbrd.TClipboard.SetAsHandle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetAsHandle(Format: Word; Value: THandle);

C++

void __fastcall SetAsHandle(System::Word Format, NativeUInt Value);

Properties

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

Description

Places data represented by a specified handle on the clipboard.

SetAsHandle writes data represented by the specified handle (Value) to the clipboard using the specified format.

Do not delete a handle after passing it to SetAsHandle. The handle belongs to the clipboard, which will free it.

The Format parameter can specify any of the formats listed under the HasFormat method. Applications can also define and register their own formats. See the Windows API Help for more information.

See Also

Code Examples