AnnSetNodes method (ILEADRasterAnnotation)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short AnnSetNodes(long hObject, VARIANT_BOOL bShowNodes, short nGapNodes, VARIANT_BOOL bSelected);

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Determines which nodes will be displayed for those annotation objects that use nodes.

This method is valid for the following annotation objects:

Curve

Closed Curve

Freehand

Freehand Hotspot

Polygon

Polyline

In addition, the Automation object stores node settings along with the other object default settings.

If hObject is a Curve, Closed Curve, Polygon, Polyline, Freehand Hot Spot, or Freehand object, this method determines how the nodes for the object will be displayed in design mode.

If hObject is an Automation object, this method determines how the nodes will be displayed for the next Curve, Closed Curve, Polygon, Polyline, Freehand Hot Spot, or Freehand object created in automated mode.

If hObject is a Container object, this method determines how the nodes of the Curves, Closed Curves, Polygons, Polylines, Freehand Hot Spot, or Freehand objects within the container will be displayed.

If bShowNodes is FALSE, nGapNodes will be ignored since the nodes will not be shown.

Note:

The last node is always shown. Therefore, using a large value for nGapNodes will probably result in only the first and last nodes being shown.

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 bSelected parameter.

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

AnnGetNodes method

Topics

Annotations (Document/Medical only): Object Manipulation