AnnConvert method (Annotation Control)
Builder Syntax |
int AnnConvert(HANNOBJECT hContainer, int nConvert) |
Delphi Syntax |
AnnConvert (hContainer: HANNOBJECT; nConvert: L_INT): L_INT |
Overview |
Refer to Implementing Annotations. |
Remarks
Use this method to convert back and forth between container coordinates and client coordinates
The number of elements in the ClientPointX, ClientPointY, AnnContainerPointX and AnnContainerPointY arrays must be AT LEAST equal to the value in the PointsCount property.
When nConvert is ANNCONVERT_TO_CONTAINER, the ClientPointX and ClientPointY arrays must contain valid entries. If this method returns successfully, ContainerPointX and ContainerPointY will be updated with the converted points.
When nConvert is ANNCONVERT_TO_CLIENT, the ContainerPointX and ContainerPointY arrays must contain valid entries. If this method returns successfully, ClientPointX and ClientPointY will be updated with the converted points.
See Also