2 writes to _centerTextBox
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
839
_centerTextBox
= new ToolStripControlHost(tb)
917
_centerTextBox
= null;
24 references to _centerTextBox
System.Windows.Forms.Design (24)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (24)
305
get => (
_centerTextBox
is not null) ? (TextBox)
_centerTextBox
.Control : null;
714
string text = ((TextBox)(
_centerTextBox
.Control)).Text;
786
string text = (
_centerTextBox
is not null) ? ((TextBox)(
_centerTextBox
.Control)).Text : string.Empty;
848
_centerTextBox
.Margin = new Padding(1, 2, 1, 3);
852
_centerTextBox
.Margin = new Padding(1);
855
_centerTextBox
.Size = _miniToolStrip.DisplayRectangle.Size -
_centerTextBox
.Margin.Size;
856
_centerTextBox
.Name = "centerTextBox";
857
_centerTextBox
.MouseEnter += CenterTextBoxMouseEnter;
858
_centerTextBox
.MouseLeave += CenterTextBoxMouseLeave;
863
_miniToolStrip.Items.Insert(index,
_centerTextBox
);
895
if (
_centerTextBox
is not null && _inSituMode)
902
int index = _miniToolStrip.Items.IndexOf(
_centerTextBox
);
909
_miniToolStrip.Items.Remove(
_centerTextBox
);
910
((TextBox)(
_centerTextBox
.Control)).KeyUp -= OnKeyUp;
911
((TextBox)(
_centerTextBox
.Control)).KeyDown -= OnKeyDown;
914
_centerTextBox
.MouseEnter -= CenterTextBoxMouseEnter;
915
_centerTextBox
.MouseLeave -= CenterTextBoxMouseLeave;
916
_centerTextBox
.Dispose();
1080
Debug.Assert(
_centerTextBox
.Control is not null, "The TextBox is null");
1081
if (
_centerTextBox
.Control is not null)
1083
string text = ((TextBox)(
_centerTextBox
.Control)).Text;