Navigation: TextEd > Extension and Scripts >

Clipboard object

 

 

 

 

Returns a global instance of TClipboard to manage interaction with Windows clipboard.
 

Use the properties and methods in the Clipboard object to access or set clipboard contents.

 


 

Properties and methods



procedure Clear;

Deletes the contents of the clipboard.


 

procedure Open;

Opens the clipboard, preventing other applications from changing its contents until the clipboard is closed.

Call Open before adding a series of items to the clipboard. This prevents other applications from overwriting the clipboard until it is closed.


Ex.

Clipboard.Open;

Strng s = Clipboard.AsText;

  ...

Clipboard.AsText = Clipboard.AsText + s;

Clipboard.Close;


 

procedure Close;

Closes the clipboard if it is open. Call Close when you are finished adding items to the clipboard.


 

property String AsText;

Represents the contents of the clipboard as a string. Use the AsText property to place text in and retrieve text from the clipboard.


Ex.

Clipboard.AsText = "Hello World!";

String s = Clipboard.AsText;


 


 

 

 

 

Copyright © 2024 Rickard Johansson