2 writes to _centerTextBox
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
848
_centerTextBox
= new ToolStripControlHost(tb)
926
_centerTextBox
= null;
24 references to _centerTextBox
System.Windows.Forms.Design (24)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (24)
308
get => (
_centerTextBox
is not null) ? (TextBox)
_centerTextBox
.Control : null;
723
string text = ((TextBox)(
_centerTextBox
.Control)).Text;
795
string text = (
_centerTextBox
is not null) ? ((TextBox)(
_centerTextBox
.Control)).Text : string.Empty;
857
_centerTextBox
.Margin = new Padding(1, 2, 1, 3);
861
_centerTextBox
.Margin = new Padding(1);
864
_centerTextBox
.Size = _miniToolStrip.DisplayRectangle.Size -
_centerTextBox
.Margin.Size;
865
_centerTextBox
.Name = "centerTextBox";
866
_centerTextBox
.MouseEnter += CenterTextBoxMouseEnter;
867
_centerTextBox
.MouseLeave += CenterTextBoxMouseLeave;
872
_miniToolStrip.Items.Insert(index,
_centerTextBox
);
904
if (
_centerTextBox
is not null && _inSituMode)
911
int index = _miniToolStrip.Items.IndexOf(
_centerTextBox
);
918
_miniToolStrip.Items.Remove(
_centerTextBox
);
919
((TextBox)(
_centerTextBox
.Control)).KeyUp -= OnKeyUp;
920
((TextBox)(
_centerTextBox
.Control)).KeyDown -= OnKeyDown;
923
_centerTextBox
.MouseEnter -= CenterTextBoxMouseEnter;
924
_centerTextBox
.MouseLeave -= CenterTextBoxMouseLeave;
925
_centerTextBox
.Dispose();
1089
Debug.Assert(
_centerTextBox
.Control is not null, "The TextBox is null");
1090
if (
_centerTextBox
.Control is not null)
1092
string text = ((TextBox)(
_centerTextBox
.Control)).Text;