Stateflow | ![]() ![]() |
Accessing the Clipboard Object
The Clipboard object (there is only one) provides an interface to the clipboard used in copying Stateflow objects. You cannot directly create or destroy the Clipboard object as you do other Stateflow API objects. However, you can attach a handle to it to use its properties and methods to copy Stateflow objects.
You create a handle to the Clipboard object by using the sfclipboard
method as follows:
You create a handle to the Clipboard object (there is only one) with the following command:
Clipboard objects have two methods, copy
and pasteTo
, that together provide the functionality to copy objects from one object to another. The copy
method copies the specified objects to the Clipboard object, and the pasteTo
method pastes the contents of the Clipboard to a new container.
![]() | Copying Objects | copy Method Limitations | ![]() |