AnnGroup method (ILEADRasterAnnotation)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

short AnnGroup(long hObject, short iFlags, BSTR pszUserList);

Overview

Refer to Implementing Annotations.

Remarks

Groups a number of objects within a container.

The Group automation menu item operates like AnnGroup(hObject, ANN_FLAG_RECURSE|ANN_FLAG_SELECTED|ANN_FLAG_CHECKMENU, NULL).

If ANN_FLAG_USER is included in iFlags, any user associated with an object to be "grouped" must be included in pszUserList. The method checks pszUserList before grouping the objects and any object that has a user not in pszUserList will not be included in the group.

If ANN_FLAG_USER is not included in iFlags, the user list is ignored.

Please note that if you include ANN_FLAG_SELECTED|ANN_FLAG_USER, for example, in iFlags, the grouped objects must have a user in pszUserList AND must also be selected.

See Also

Elements

AnnUngroup method, AnnGetGrouping method, AnnSetGrouping method

Topics

Annotations (Document/Medical only): Object Manipulation

 

Displaying and Manipulating Annotation Objects