IsVisibleOnChart()
<< Click to Display Table of Contents >> IsVisibleOnChart() |
Indicates a chart object is visible on the chart. When the IsVisibleOnChart() method determines a chart object is not visible and returns false, the object will not be used in a render pass, will not be considered in a hit test, and will not be used for alerting. The base implementation is to always return true on all chart objects, however this behavior can be overridden for your custom object if desired.
A virtual bool value which when true, the object will be rendered and can be interacted with by a user; otherwise false. Default value is true.
You must override this method using the following syntax:
public override bool IsVisibleOnChart(ChartControl chartControl, ChartScale chartScale, DateTime firstTimeOnChart, DateTime lastTimeOnChart)
{
return true;
}
chartControl |
A ChartControl representing the x-axis |
chartScale |
A ChartScale representing the y-axis |
firstTimeOnChart |
A DateTime representing the first painted bar displayed on the chart |
lastTimeOnChart |
A DateTime representing the last painted bar displayed on the chart |
public override bool IsVisibleOnChart(ChartControl chartControl, ChartScale chartScale, DateTime firstTimeOnChart, DateTime lastTimeOnChart) |