Table of Contents

TTMSFNCClipBoard.SetCustomValue Method

Writes a custom value to the clipboard using the specified Windows format identifier.

API unit family: TMSFNCUtils Declaring type: TTMSFNCClipBoard

Overloads

Overload 1

Writes a custom value to the clipboard using the specified Windows format identifier.

class procedure SetCustomValue(AFormat: Cardinal; AValue: TValue; var AData: Pointer); virtual;

Parameters

Name Description
AFormat The Windows clipboard format identifier for the custom data.
AValue The value to serialize into the clipboard data block.
AData Receives a pointer to the allocated clipboard memory block.

Overload 2

Writes a custom value to the clipboard using the specified format name and returns the serialized NSData block.

class function SetCustomValue(AFormat: String; AValue: TValue): NSData; virtual;

Parameters

Name Description
AFormat The macOS clipboard format name for the custom data.
AValue The value to serialize.

Returns

An NSData object containing the serialized clipboard data.

Overload 3

Writes a custom value to the clipboard using the specified format name.

class function SetCustomValue(AFormat: String; AValue: TValue): Pointer; virtual;

Parameters

Name Description
AFormat The platform clipboard format name for the custom data.
AValue The value to serialize into the clipboard data block.

Returns

A pointer to the allocated clipboard memory block.