2D Chart for WinForms | ComponentOne
Chart Area and Plot Area Objects / Plot Area / Alarm Zones / Adding Alarm Zones
In This Topic
    Adding Alarm Zones
    In This Topic

    AlarmZones can be added at design time through the AlarmZonesCollection Editor in the Visual Studio Properties window or programmatically through the AlarmZones object.

    To programmatically add an AlarmZone member to the AlarmZonesCollection:

    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();
    

    To access the collection editor at design time:

    1. Right-click on the C1Chart2D control and select Properties from its context menu.
    2. In the Properties Window, expand the ChartArea node in the Properties window, then expand the PlotArea node, and click the ellipsis next to the AlarmZones property.

    For more information on the AlarmZone Collection Editor, see AlarmZone Collection Editor.

    See Also