Vcl.Clipbrd.TClipboard.GetAsHandle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetAsHandle(Format: UINT): THandle;

C++

Winapi::Windows::THandle __fastcall GetAsHandle(unsigned Format);

Properties

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

Description

Returns a Windows handle to data from the clipboard in the specified format.

GetAsHandle retrieves data from the clipboard using Windows handles.

The handle returned by GetAsHandle is not owned by the application and is valid only as long as the clipboard is open. If you need it for longer, copy the data to another handle.

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