Currently,
AffectedSeries property refer to the series index, i.e. sequential number starting from zero.
So if your chart has 2 line series and a bar series in that order,
AffectedSeries="0,2" would make a tool affect first line series and bar series, but not second line series.
If, at runtime, you insert a new area series and move it to the beginning of the list
(which is unlikely, but possible), then the same value of
AffectedSeries property would now refer to area series and the second line series.
Series have tags ... AffectedSeries do not take it into consideration.
This is actually an idea which I did consider during the tools design, however:
1)
Tag property is specifically intended NOT to be used by the library, leaving it free for an application programmer. So it would be a new property, something like
ToolTag2) This solution trades a quite rare problem (possible index change due to dynamic series) for requirement to set meaningful
ToolTags for all series. I decided that it is better to leave simpler API.
3) If it helps, I can easily add
OnIsSeriesAffected event which would allow you to dynamically narrow down affected set (for example, by checking tags).
4) Perhaps the actual problem is that setting
AffectedSeries at design-time is non-intuitive. I definitely want to implement specialized property editor for it, but do not have a good UI design for it yet. For example, I have recently implemented property editor for
AxisIndexX/
AxisIndexY properties, which IMO should make setting them easier.