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)
398if (_addItemButton is not null) 400_addItemButton.DropDown.Visible = false; 710if (_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(); 1031if (_addItemButton is null) 1185if (_addItemButton is not null) 1187if (_addItemButton.ButtonBounds.Contains(e.Location)) 1191else if (_addItemButton.DropDownButtonBounds.Contains(e.Location)) 1291if (_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; 1439if (_addItemButton.DropDownItems.Count > 0) 1441ItemTypeToolStripMenuItem firstItem = (ItemTypeToolStripMenuItem)_addItemButton.DropDownItems[0]; 1442_addItemButton.ImageTransparentColor = Color.Lime; 1443_addItemButton.Image = ScaleHelper.GetSmallIconResourceAsBitmap( 1448_addItemButton.DefaultItem = firstItem; 1451Debug.Assert(_addItemButton.DropDownItems.Count > 0); 1459_addItemButton 1762if (_owner._addItemButton is null)