Sign in Join
FPDoc Onlineexperiment

TClipboard class

In unit Clipbrd

Represents the clipboard on platforms supported for the LCL.

Declaration

pascal
TClipboard = class(TPersistent)

Inheritance

  1. TClipboard
  2. TPersistent
  3. TObject

Description

TClipboard is an area used to hold information that has been cut or copied, and is available for pasting.

The clipboard object encapsulates the Windows clipboard as well as the three standard Gtk selections. For each of the three clipboards/selections there is an object: PrimarySelection, SecondarySelection and Clipboard. There is no difference between the three objects except their type.

A lot of information about Clipboard Formats, including predefined formats for Delphi/Kylix compatibility, is found in the LCLType unit, at TClipboardFormat, TClipboardType, ClipboardTypeName, TPredefinedClipboardFormat, PredefinedClipboardMimeTypes

See also

Properties

AsTextpublicText stored in the clipboard.
ClipboardTypepublicContains the clipboard type for the platform.
FormatCountpublicContains the number of clipboard formats supported for the class instance.
FormatspublicContains the clipboard formats currently in use for the class instance.

Methods

AddFormatpublicAcquires ownership of the Clipboard and adds a format.
AssignpublicCopies properties from the specified persistent object to the clipboard.
AssignTopublicCopies property values into the specified persistent object.
ClearpublicClears the content in the clipboard.
ClosepublicCloses down the clipboard.
CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
FindPictureFormatIDpublicGets the first format ID that is a graphic format supported in TPicture.
FindFormatIDpublicGets the clipboard format which used the specified name (MIME type).
GetAsHtmlpublicRetrieves the HTML content of the clipboard (if available).
GetComponentpublicGets a TComponent instance with the specified owner and parent from the clipboard.
GetComponentAsTextpublicLoads a component instance from a textual representation stored in the clipboard.
GetFormatpublicGets the data for the specified clipboard format from the LCL interface or cached clipboard data.
SupportedFormatspublicGets the list of supported formats for the clipboard.
GetTextBufpublicReads text from the clipboard and returns the content and number of characters.
HasFormatpublicDetermines whether the specified clipboard format is supported for the clipboard.
HasFormatNamepublicIndicates whether a clipboard format exists with the specified name (MIME type).
HasPictureFormatpublicIndicates whether a clipboard format for graphical data is present in the supported formats.
OpenpublicOpen the clipboard to receive and transmit data.
SetAsHtmlpublicPuts a HTML string on the clipboard.
SetComponentpublicWrites the specified component to the storage for the Clipboard format.
SetComponentAsTextpublicStores the specified Component in the clipboard.
SetFormatpublicSets the clipboard format to the specified identifier and copies the value in Stream.
SetSupportedFormatspublicSets all supported clipboard formats at once.
SetTextBufpublicLoads the clipboard buffer using the text in the specified PChar value.

Events

OnRequestpublicOnRequest - event handler for a request for clipboard data.

Inherited

From TPersistent (6)

DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath GetOwner

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.