2 writes to _addItemButton
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
718
_addItemButton
= null;
1399
_addItemButton
= new ToolStripSplitButton
37 references to _addItemButton
System.Windows.Forms.Design (37)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (37)
398
if (
_addItemButton
is not null)
400
_addItemButton
.DropDown.Visible = false;
710
if (
_addItemButton
is not null)
712
_addItemButton
.MouseMove -= OnMouseMove;
713
_addItemButton
.MouseUp -= OnMouseUp;
714
_addItemButton
.MouseDown -= OnMouseDown;
715
_addItemButton
.DropDownOpened -= OnAddItemButtonDropDownOpened;
716
_addItemButton
.DropDown.Dispose();
717
_addItemButton
.Dispose();
1009
_addItemButton
.DropDown.Focus();
1031
if (
_addItemButton
is null)
1185
if (
_addItemButton
is not null)
1187
if (
_addItemButton
.ButtonBounds.Contains(e.Location))
1191
else if (
_addItemButton
.DropDownButtonBounds.Contains(e.Location))
1291
if (
_addItemButton
is not null)
1299
_addItemButton
.ShowDropDown();
1404
_addItemButton
.Size = _miniToolStrip.DisplayRectangle.Size -
_addItemButton
.Margin.Size;
1405
_addItemButton
.DropDownButtonWidth = s_miniToolStripDropDownButtonWidth;
1406
_addItemButton
.DisplayStyle = ToolStripItemDisplayStyle.Image;
1409
_addItemButton
.ToolTipText = SR.ToolStripDesignerTemplateNodeSplitButtonStatusStripToolTip;
1413
_addItemButton
.ToolTipText = SR.ToolStripDesignerTemplateNodeSplitButtonToolTip;
1416
_addItemButton
.MouseDown += OnMouseDown;
1417
_addItemButton
.MouseMove += OnMouseMove;
1418
_addItemButton
.MouseUp += OnMouseUp;
1419
_addItemButton
.DropDownOpened += OnAddItemButtonDropDownOpened;
1432
_addItemButton
.DropDown = _contextMenu;
1433
_addItemButton
.AccessibleName = SR.ToolStripDesignerTemplateNodeSplitButtonStatusStripAccessibleName;
1434
_addItemButton
.AccessibleRole = AccessibleRole.ButtonDropDown;
1439
if (
_addItemButton
.DropDownItems.Count > 0)
1441
ItemTypeToolStripMenuItem firstItem = (ItemTypeToolStripMenuItem)
_addItemButton
.DropDownItems[0];
1442
_addItemButton
.ImageTransparentColor = Color.Lime;
1443
_addItemButton
.Image = ScaleHelper.GetSmallIconResourceAsBitmap(
1448
_addItemButton
.DefaultItem = firstItem;
1451
Debug.Assert(
_addItemButton
.DropDownItems.Count > 0);
1459
_addItemButton
1762
if (_owner.
_addItemButton
is null)