FMX.Clipboard.IFMXExtendedClipboardService.GetCustomFormat
Delphi
function GetCustomFormat(const AFormatName: string; const AStream: TStream): Boolean;
C++
virtual bool __fastcall GetCustomFormat(const System::UnicodeString AFormatName, System::Classes::TStream* const AStream) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Clipboard.pas FMX.Clipboard.hpp |
FMX.Clipboard | IFMXExtendedClipboardService |
Description
Fills the specified data stream with the content of the system clipboard and returns True
on success or False
otherwise.
If the content of the system clipboard is not in the specified custom format, GetCustomFormat returns False
and the specified data stream is not modified. Otherwise, GetCustomFormat returns True
.
Exceptions
GetCustomFormat may raise one of the following exceptions:
Exception | Message | Scenarios |
---|---|---|
AFormat parameter cannot be empty |
| |
AStream parameter cannot be nil |
| |
< |
| |
JClipboardManager does not support custom data |
|