PointIndex Property
Syntax
CWAnnotation.PointIndex
Data Type
Purpose
Specifies the index of a plot point to center the shape around.
Remarks
The PointIndex property is zero-based. The property is best used with CWShape.Type set to cwShapeNone or cwShapePoint.
If CWAnnotation.SnapMode is set to True, the annotation shape is centered around or on this point index on the plot specified by the Plot property.
Example
'Anchor the second annotation to the specified plot at point 25
CWGraph1.Annotations.Item(2).Plot = CWGraph1.Plots(1)
'Remember that PointIndex is zero-based
CWGraph1.Annotations.Item(2).PointIndex = 24
CWGraph1.Annotations.Item(2).SnapMode = cwCSnapPointsOnPlot