Skip to content

ChartSizeEventArgs

Summary

Provides data for the chart size change event.

Signature

1
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

1
public Chart Chart {get;}

Return Value

Chart

Area

Summary

Gets the chart area.

Signature

1
public ChartArea Area {get;}

Return Value

ChartArea