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);
248
resources.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));
537
if (
_newItemTypes
.Tag is null || !(bool)
_newItemTypes
.Tag)
539
int itemWidth =
_newItemTypes
.ItemHeight;
543
using (Graphics g =
_newItemTypes
.CreateGraphics())
545
foreach (TypeListItem item in
_newItemTypes
.Items)
547
itemWidth = (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;
570
if (
_newItemTypes
.SelectedItem is not TypeListItem typeItem)
617
_newItemTypes
.Invalidate();