Vcl.Clipbrd.TClipboard.HasFormat
Delphi
function HasFormat(Format: UINT): Boolean;
C++
bool __fastcall HasFormat(unsigned Format);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Clipbrd.pas Vcl.Clipbrd.hpp |
Vcl.Clipbrd | TClipboard |
Description
Indicates whether the clipboard contains data in a specified format.
Use HasFormat to find out whether the clipboard contains data encoded in a specific format. HasFormat returns true if the format is present and false otherwise. TClipboard keeps a list of available formats in the Formats array property.
Some of the possible values of the Format parameter follow. HasFormat supports additional formats provided by Windows or by other applications as well as custom formats registered with TPicture::.RegisterClipboardFormat.
Value | Meaning |
---|---|
CF_TEXT |
Text with a CR-LF combination at the end of each line. A null character identifies the end of the text. |
CF_BITMAP |
A Windows bitmap graphic. |
CF_METAFILEPICT |
A Windows metafile graphic. |
CF_PICTURE |
An object of type TPicture. |
CF_COMPONENT |
Any persistent object. |
See Also