ChartSizeEventArgs
Summary
Provides data for the chart size change event.
Signature
| public class ChartSizeEventArgs
|
Namespace
cAlgo.API
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | using cAlgo.API;
namespace cAlgo
{
// This example shows how to use the Chart ChartSizeEventArgs
[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class ChartSizeEventArgsSample : Indicator
{
protected override void Initialize()
{
Chart.SizeChanged += Chart_SizeChanged;
}
private void Chart_SizeChanged(ChartSizeEventArgs obj)
{
Chart.DrawStaticText("size", "Size Changed", VerticalAlignment.Top, HorizontalAlignment.Right, Color.Red);
}
public override void Calculate(int index)
{
}
}
}
|
Properties
Chart
Summary
Gets the chart.
Signature
| public Chart Chart {get;}
|
Return Value
Chart
Area
Summary
Gets the chart area.
Signature
| public ChartArea Area {get;}
|
Return Value
ChartArea