1 write to _newItemTypes
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
187_newItemTypes = new();
31 references to _newItemTypes
System.Windows.Forms.Design (31)
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (31)
238_addTableLayoutPanel.Controls.Add(_newItemTypes, 0, 0); 248resources.ApplyResources(_newItemTypes, "newItemTypes"); 249_newItemTypes.DropDownStyle = ComboBoxStyle.DropDownList; 250_newItemTypes.FormattingEnabled = true; 251_newItemTypes.Margin = new(0, 0, 3, 0); 252_newItemTypes.Name = "newItemTypes"; 253_newItemTypes.DrawMode = DrawMode.OwnerDrawVariable; 327_newItemTypes.DropDown += OnNewItemTypes_DropDown; 328_newItemTypes.HandleCreated += OnComboHandleCreated; 329_newItemTypes.SelectedIndexChanged += OnNewItemTypes_SelectedIndexChanged; 363_newItemTypes.HandleCreated -= OnComboHandleCreated; 365_newItemTypes.MeasureItem += OnListBoxItems_MeasureItem; 366_newItemTypes.DrawItem += OnListBoxItems_DrawItem; 437_newItemTypes.ItemHeight = Math.Max(s_iconHeight, Font.Height); 446_newItemTypes.Items.Clear(); 449_newItemTypes.Items.Add(new TypeListItem(t)); 452_newItemTypes.SelectedIndex = 0; 459_customItemIndex = _newItemTypes.Items.Count; 462_newItemTypes.Items.Add(new TypeListItem(t)); 537if (_newItemTypes.Tag is null || !(bool)_newItemTypes.Tag) 539int itemWidth = _newItemTypes.ItemHeight; 543using (Graphics g = _newItemTypes.CreateGraphics()) 545foreach (TypeListItem item in _newItemTypes.Items) 547itemWidth = (int)Math.Max(itemWidth, _newItemTypes.ItemHeight + 1 548+ g.MeasureString(item.Type.Name, _newItemTypes.Font).Width + GdiPlusExtraSpace); 553_newItemTypes.DropDownWidth = itemWidth; 554_newItemTypes.DropDownHeight = dropDownHeight; 557_newItemTypes.Tag = true; 570if (_newItemTypes.SelectedItem is not TypeListItem typeItem) 617_newItemTypes.Invalidate();