PowerArgs.Cli.TextBox.TextBox C# (CSharp) Method

TextBox() public method

Creates a new text box
public TextBox ( ) : System
return System
        public TextBox()
        {
            this.textState = new RichTextEditor();
            this.Height = 1;
            this.Width = 15;
            CanFocus = true;
            this.Focused.SubscribeForLifetime(TextBox_Focused, this.LifetimeManager);
            this.Unfocused.SubscribeForLifetime(TextBox_Unfocused, this.LifetimeManager);
            textState.SubscribeForLifetime(nameof(textState.CurrentValue), TextValueChanged, this.LifetimeManager);
            KeyInputReceived.SubscribeForLifetime(OnKeyInputReceived, this.LifetimeManager);
        }