LAnnotation::Copy
#include "ltwrappr.h"
virtual L_INT LAnnotation::Copy(hAnnSource)
virtual L_INT LAnnotation::Copy(LAnnSource)
HANNOBJECT hAnnSource; |
/* handle to the associated annotation object */ |
LAnnotation& LAnnSource; |
/* the annotation object to be copied */ |
Makes a copy of the specified annotation object. This function is available in the Document/Medical Toolkits.
Parameter |
Description |
hAnnSource |
Handle to the associated annotation object to be copied. |
LAnnSource |
The annotation object to be copied. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
LAnnotation::Copy(hAnnSource) will update the class object with the handle of the annotation object created by the copy.
LAnnotation::Copy(LAnnSource) will update the class object with the passed object.
Required DLLs and Libraries
LTANN For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Functions: |
|
Topics: |
|
|
|
|
Example
This is an example for LAnnotation::Copy(hAnnSource):
L_INT LAnnotation_CopyFirstExample(LAnnotation& LeadAnnotation) { HANNOBJECT hAnnObj ; LAnnotation MyAnn ; hAnnObj = LeadAnnotation.GetHandle() ; MyAnn.Copy(hAnnObj) ; // return SUCCESS; } //This is an example for LAnnotation::Copy(LAnnSource): L_INT LAnnotation_CopySecondExample(LAnnotation& LeadAnnotation) { LAnnotation MyAnn ; MyAnn.Copy(LeadAnnotation) ; //... return SUCCESS; }