Skip to content

ChartSizeEventArgs

Summary

Provides data for the chart size change event.

Signature

1
public class ChartSizeEventArgs

Namespace

cAlgo.API

Properties

Name Description
Chart { get; } Gets the chart.
Area { get; } Gets the chart area.

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)
         {
         }
     }
 }

Last update: December 5, 2022

Comments