TextChangedEventArgs
Summary
Provides data for the TextChanged event.
Signature
| public class TextChangedEventArgs
|
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
29
30
31
32
33
34
35
36
37
38 | using cAlgo.API;
namespace cAlgo
{
// This sample indicator shows how to use TextChangedEventArgs
[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class TextChangedEventArgsSample : Indicator
{
protected override void Initialize()
{
var stackPanel = new StackPanel
{
BackgroundColor = Color.Gold,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
Opacity = 0.6,
};
var textBox = new TextBox
{
Text = "Enter text here...",
FontWeight = FontWeight.ExtraBold,
Margin = 5,
ForegroundColor = Color.White,
HorizontalAlignment = HorizontalAlignment.Center,
Width = 150
};
textBox.TextChanged += TextBox_TextChanged;
stackPanel.AddChild(textBox);
Chart.AddControl(stackPanel);
}
private void TextBox_TextChanged(TextChangedEventArgs obj)
{
Print("Text box text changed to: ", obj.TextBox.Text);
}
public override void Calculate(int index)
{
}
}
}
|
See Also
Properties
TextBox
Summary
Gets the texbox.
Signature
| public TextBox TextBox {get;}
|
Return Value
TextBox
Related Tutorials