CheckBoxEventArgs
Summary
Provides data for the checkbox event.
Signature
| public class CheckBoxEventArgs
|
Namespace
cAlgo.API
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 | using cAlgo.API;
namespace cAlgo
{
// This example shows how to use the CheckBoxEventArgs
[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class CheckBoxEventArgsSample : Indicator
{
protected override void Initialize()
{
var checkBox = new CheckBox
{
Text = "Check Box",
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
};
checkBox.Click += CheckBox_Click;
Chart.AddControl(checkBox);
}
private void CheckBox_Click(CheckBoxEventArgs obj)
{
var state = obj.CheckBox.IsChecked.Value ? "Checked" : "Unchecked";
obj.CheckBox.Text = state;
}
public override void Calculate(int index)
{
}
}
}
|
See Also
Properties
CheckBox
Summary
Gets the checkbox data.
Signature
| public CheckBox CheckBox {get;}
|
Return Value
CheckBox
Last update: November 30, 2023