ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupTextBox.KryptonRibbonGroupTextBox C# (CSharp) Method

KryptonRibbonGroupTextBox() public method

Initialise a new instance of the KryptonRibbonGroupTextBox class.
public KryptonRibbonGroupTextBox ( ) : System
return System
        public KryptonRibbonGroupTextBox()
        {
            // Default fields
            _visible = true;
            _enabled = true;
            _itemSizeCurrent = GroupItemSize.Medium;
            _shortcutKeys = Keys.None;
            _keyTip = "X";

            // Create the actual text box control and set initial settings
            _textBox = new KryptonTextBox();
            _textBox.InputControlStyle = InputControlStyle.Ribbon;
            _textBox.AlwaysActive = false;
            _textBox.MinimumSize = new Size(121, 0);
            _textBox.MaximumSize = new Size(121, 0);
            _textBox.TabStop = false;

            // Hook into events to expose via this container
            _textBox.AcceptsTabChanged += new EventHandler(OnTextBoxAcceptsTabChanged);
            _textBox.TextAlignChanged += new EventHandler(OnTextBoxTextAlignChanged);
            _textBox.TextChanged += new EventHandler(OnTextBoxTextChanged);
            _textBox.HideSelectionChanged += new EventHandler(OnTextBoxHideSelectionChanged);
            _textBox.ModifiedChanged += new EventHandler(OnTextBoxModifiedChanged);
            _textBox.MultilineChanged += new EventHandler(OnTextBoxMultilineChanged);
            _textBox.ReadOnlyChanged += new EventHandler(OnTextBoxReadOnlyChanged);
            _textBox.GotFocus += new EventHandler(OnTextBoxGotFocus);
            _textBox.LostFocus += new EventHandler(OnTextBoxLostFocus);
            _textBox.KeyDown += new KeyEventHandler(OnTextBoxKeyDown);
            _textBox.KeyUp += new KeyEventHandler(OnTextBoxKeyUp);
            _textBox.KeyPress += new KeyPressEventHandler(OnTextBoxKeyPress);
            _textBox.PreviewKeyDown += new PreviewKeyDownEventHandler(OnTextBoxPreviewKeyDown);

            // Ensure we can track mouse events on the text box
            MonitorControl(_textBox);
        }