AlarmZones can be added at design time through the AlarmZonesCollection Editor in the Visual Studio Properties window or programmatically through the AlarmZones object.
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1Chart1.ChartArea.PlotArea.AlarmZones.AddNewZone() |
To write code in C#
C# |
Copy Code
|
---|---|
c1Chart1.ChartArea.PlotArea.AlarmZones.AddNewZone(); |
For more information on the AlarmZone Collection Editor, see AlarmZone Collection Editor.