2 writes to _centerTextBox
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
881_centerTextBox = new ToolStripControlHost(tb) 959_centerTextBox = null;
24 references to _centerTextBox
System.Windows.Forms.Design (24)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (24)
317get => (_centerTextBox is not null) ? (TextBox)_centerTextBox.Control : null; 753string text = ((TextBox)(_centerTextBox.Control)).Text; 825string text = (_centerTextBox is not null) ? ((TextBox)(_centerTextBox.Control)).Text : string.Empty; 890_centerTextBox.Margin = new Padding(1, 2, 1, 3); 894_centerTextBox.Margin = new Padding(1); 897_centerTextBox.Size = _miniToolStrip.DisplayRectangle.Size - _centerTextBox.Margin.Size; 898_centerTextBox.Name = "centerTextBox"; 899_centerTextBox.MouseEnter += CenterTextBoxMouseEnter; 900_centerTextBox.MouseLeave += CenterTextBoxMouseLeave; 905_miniToolStrip.Items.Insert(index, _centerTextBox); 937if (_centerTextBox is not null && _inSituMode) 944int index = _miniToolStrip.Items.IndexOf(_centerTextBox); 951_miniToolStrip.Items.Remove(_centerTextBox); 952((TextBox)(_centerTextBox.Control)).KeyUp -= OnKeyUp; 953((TextBox)(_centerTextBox.Control)).KeyDown -= OnKeyDown; 956_centerTextBox.MouseEnter -= CenterTextBoxMouseEnter; 957_centerTextBox.MouseLeave -= CenterTextBoxMouseLeave; 958_centerTextBox.Dispose(); 1125Debug.Assert(_centerTextBox.Control is not null, "The TextBox is null"); 1126if (_centerTextBox.Control is not null) 1128string text = ((TextBox)(_centerTextBox.Control)).Text;