FMX.Clipboard.IFMXExtendedClipboardService.RegisterCustomFormat
Delphi
procedure RegisterCustomFormat(const AFormatName: string);
C++
virtual void __fastcall RegisterCustomFormat(const System::UnicodeString AFormatName) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Clipboard.pas FMX.Clipboard.hpp |
FMX.Clipboard | IFMXExtendedClipboardService |
Description
Registers the specified identifier for a custom data format that you can use read or write arbitrary data into the system clipboard.
AFormatName
must be an arbitrary, non-empty string that identifies your custom data format. For example, you can use a media type identifier, or something as simple as "MyFormat". Apple recommends using a Uniform Type Identifier (UTI).
Exceptions
RegisterCustomFormat may raise one of the following exceptions:
Exception | Message | Scenarios |
---|---|---|
AFormat parameter cannot be empty |
| |
Custom clipboard format with name "< |
| |
<Windows-specific error message> |
|