AnnSetUserData method (ILEADRasterAnnotation)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short AnnSetUserData (long hObject, ILEADRasterVariant *pData)

Overview

Refer to Implementing Annotations.

Remarks

Use this Method to associate user-defined data with ANY annotation object. User data can be binary or text data, and can be any length. When the annotation object is copied, any user data is also copied. When saving the annotation (AnnSave, AnnSaveMemory), the user data is saved.

You must set Flags property before set this method and the Possible values for Flags Property for this property is:

0

ANN_FLAG_SELECTED

ANN_FLAG_NOTTHIS

ANN_FLAG_RECURSE

ANN_FLAG_NOTCONTAINER

ANN_FLAG_NOINVALIDATE

If the value of the AnnContainer property is passed as the hObject parameter, the method will modify all the annotations in the container depending on the value of Flags property.

If the value of the AnnAutomation property is passed as the hObject parameter, the method will modify the default values used whenever an annotation is created.

See Also

Elements:

AnnAutoSnapCursor property, Flags property, AnnAutoCursor property, AnnGetUserData method

Topics:

Annotations (Document/Medical only): Object Manipulation