1 write to _newItemTypes
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
191_newItemTypes = new();
31 references to _newItemTypes
System.Windows.Forms.Design (31)
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (31)
242_addTableLayoutPanel.Controls.Add(_newItemTypes, 0, 0); 252resources.ApplyResources(_newItemTypes, "newItemTypes"); 253_newItemTypes.DropDownStyle = ComboBoxStyle.DropDownList; 254_newItemTypes.FormattingEnabled = true; 255_newItemTypes.Margin = new(0, 0, 3, 0); 256_newItemTypes.Name = "newItemTypes"; 257_newItemTypes.DrawMode = DrawMode.OwnerDrawVariable; 331_newItemTypes.DropDown += OnNewItemTypes_DropDown; 332_newItemTypes.HandleCreated += OnComboHandleCreated; 333_newItemTypes.SelectedIndexChanged += OnNewItemTypes_SelectedIndexChanged; 367_newItemTypes.HandleCreated -= OnComboHandleCreated; 369_newItemTypes.MeasureItem += OnListBoxItems_MeasureItem; 370_newItemTypes.DrawItem += OnListBoxItems_DrawItem; 441_newItemTypes.ItemHeight = Math.Max(s_iconHeight, Font.Height); 450_newItemTypes.Items.Clear(); 453_newItemTypes.Items.Add(new TypeListItem(t)); 456_newItemTypes.SelectedIndex = 0; 463_customItemIndex = _newItemTypes.Items.Count; 466_newItemTypes.Items.Add(new TypeListItem(t)); 541if (_newItemTypes.Tag is null || !(bool)_newItemTypes.Tag) 543int itemWidth = _newItemTypes.ItemHeight; 547using (Graphics g = _newItemTypes.CreateGraphics()) 549foreach (TypeListItem item in _newItemTypes.Items) 551itemWidth = (int)Math.Max(itemWidth, _newItemTypes.ItemHeight + 1 552+ g.MeasureString(item.Type.Name, _newItemTypes.Font).Width + GdiPlusExtraSpace); 557_newItemTypes.DropDownWidth = itemWidth; 558_newItemTypes.DropDownHeight = dropDownHeight; 561_newItemTypes.Tag = true; 574if (_newItemTypes.SelectedItem is not TypeListItem typeItem) 621_newItemTypes.Invalidate();