[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'Clipbrd' (#lcl)

TClipboard.AddFormat

Aquires ownership of the Clipboard and adds a format

Declaration

Source position: clipbrd.pp line 186

public function TClipboard.AddFormat(

  FormatID: TClipboardFormat;

  Stream: TStream

):Boolean;

function TClipboard.AddFormat(

  FormatID: TClipboardFormat;

  var Buffer;

  Size: Integer

):Boolean;

Function result

True if format added correctly

Description

If not already done this functions aquires ownership of the clipboard. Aquiring ownership clears the clipbaord. If the format already exists it replaces the old content otherwise it is added. The format CF_TEXT is handled by AsText and SetTextBuf. Use those functions instead.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.