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)
317
get => (
_centerTextBox
is not null) ? (TextBox)
_centerTextBox
.Control : null;
753
string text = ((TextBox)(
_centerTextBox
.Control)).Text;
825
string 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
);
937
if (
_centerTextBox
is not null && _inSituMode)
944
int 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();
1125
Debug.Assert(
_centerTextBox
.Control is not null, "The TextBox is null");
1126
if (
_centerTextBox
.Control is not null)
1128
string text = ((TextBox)(
_centerTextBox
.Control)).Text;