IsInHitTest

View as Markdown

Definition

Indicates a user is currently clicking in the chart panel in which the calling script resides.

In addition to the example below, IsInHitTest can also be tested directly on chart objects (for example, myHorizontalLine.IsInHitTest). In this case, the IsInHitTest property of a specific object will refer to the panel in which the calling script resides, even if the calling script resides in a different panel than the object itself.

Property Value

This property returns true to indicate that the chart panel in which the script resides is being clicked on; otherwise, false. Default set to false.

Syntax

IsInHitTest

Examples

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 if(IsInHitTest)
4 {
5 Print("user clicked on object");
6
7 // do something
8 }
9}