2 writes to _centerTextBox
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
845
_centerTextBox
= new ToolStripControlHost(tb)
923
_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;
720
string text = ((TextBox)(
_centerTextBox
.Control)).Text;
792
string text = (
_centerTextBox
is not null) ? ((TextBox)(
_centerTextBox
.Control)).Text : string.Empty;
854
_centerTextBox
.Margin = new Padding(1, 2, 1, 3);
858
_centerTextBox
.Margin = new Padding(1);
861
_centerTextBox
.Size = _miniToolStrip.DisplayRectangle.Size -
_centerTextBox
.Margin.Size;
862
_centerTextBox
.Name = "centerTextBox";
863
_centerTextBox
.MouseEnter += CenterTextBoxMouseEnter;
864
_centerTextBox
.MouseLeave += CenterTextBoxMouseLeave;
869
_miniToolStrip.Items.Insert(index,
_centerTextBox
);
901
if (
_centerTextBox
is not null && _inSituMode)
908
int index = _miniToolStrip.Items.IndexOf(
_centerTextBox
);
915
_miniToolStrip.Items.Remove(
_centerTextBox
);
916
((TextBox)(
_centerTextBox
.Control)).KeyUp -= OnKeyUp;
917
((TextBox)(
_centerTextBox
.Control)).KeyDown -= OnKeyDown;
920
_centerTextBox
.MouseEnter -= CenterTextBoxMouseEnter;
921
_centerTextBox
.MouseLeave -= CenterTextBoxMouseLeave;
922
_centerTextBox
.Dispose();
1086
Debug.Assert(
_centerTextBox
.Control is not null, "The TextBox is null");
1087
if (
_centerTextBox
.Control is not null)
1089
string text = ((TextBox)(
_centerTextBox
.Control)).Text;