ChartDirector 7.1 (.NET Edition)

WPFHotSpotEventArgs


WPFHotSpotEventArgs is used in various hot spot events of the WPFChartViewer control to represent attributes associated with the hot spot. These attributes come from query parameters in the image map that defines the hot spot.

For example, suppose the query parameters for the hot spot is:

x=0&xLabel=Mon&dataSet=0&dataSetName=Revenue&value=100

The WPFHotSpotEventArgs object will contain the following attributes.

AttributeValue
x0
xLabelMon
dataSet0
dataSetNameRevenue
value100

If there are two attributes with the same name in the query parameters, they will be merged into one attribute, with the values appended together, delimited using the ASCII unit separator character (ASCII code 31).

In addition to the attributes due to query parameters, the WPFHotSpotEventArgs object contains three additional attributes as follows:

WPFHotSpotEventArgs is a subclass of System.Windows.Input.MouseEventArgs. Therefore, it also supports all properties of MouseEventArgs. For instance, you can use MouseEventArgs to determine which mouse button is pressed in a MouseDownHotSpot event.

Properties
NameDescription
ItemGets or sets the value of the specified attribute. In C#, this property is the indexer of the class.
AttrValuesGets a Hashtable containing all attributes and values associated with the hot spot.
Note: Properties inherited from MouseEventArgs are omitted.

Methods
NameDescription
Note: Methods inherited from MouseEventArgs are omitted.

Events
NameDescription
Note: Events inherited from MouseEventArgs are omitted.