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);
252
resources.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));
541
if (
_newItemTypes
.Tag is null || !(bool)
_newItemTypes
.Tag)
543
int itemWidth =
_newItemTypes
.ItemHeight;
547
using (Graphics g =
_newItemTypes
.CreateGraphics())
549
foreach (TypeListItem item in
_newItemTypes
.Items)
551
itemWidth = (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;
574
if (
_newItemTypes
.SelectedItem is not TypeListItem typeItem)
621
_newItemTypes
.Invalidate();