Copy
TheCopymethod creates a new shape object that is a copy of this shape.
ODShape Copy ();
- return value
- A reference to the newly created shape.
DISCUSSION
The new shape does not share any data with this shape; therefore, you can modify each of the shapes independently. This method automatically deletes the new shape if the copy operation fails.This method initializes the reference count of the returned shape. When you have finished using that shape, you should call its
Releasemethod.EXCEPTIONS
kODErrOutOfMemory- There is not enough memory to copy this shape.
SEE ALSO
TheODShape::CopyFrommethod (page 635).
Listing 2-14 on page 61 in OpenDoc Cookbook.
Table 11-1 on page 466 in OpenDoc Programmer's Guide.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help