2 instantiations of ListBoxItem
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
144
_selectedColumns.Items.Insert(selectedIndex, new
ListBoxItem
(newColumn!, this, newColumnDesigner));
878
_selectedColumns.Items.Add(new
ListBoxItem
(_columnsPrivateCopy[i], this, columnDesigner));
30 references to ListBoxItem
System.Windows.Forms.Design (30)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (28)
100
ListBoxItem
lbi = (
ListBoxItem
)_selectedColumns.SelectedItem!;
108
private void ColumnTypeChanged(
ListBoxItem
item, Type newType)
132
ListBoxItem
listBoxItem = (
ListBoxItem
)_selectedColumns.SelectedItem;
288
if (e.Component is
ListBoxItem
&& _selectedColumns.Items.Contains(e.Component))
668
ListBoxItem
? item = (
ListBoxItem
)_selectedColumns.SelectedItem!;
714
ListBoxItem
item = (
ListBoxItem
)_selectedColumns.Items[selectedIndex - 1];
763
ListBoxItem
? lbi = _selectedColumns.Items[i] as
ListBoxItem
;
865
ListBoxItem
? lbi = _selectedColumns.Items[i] as
ListBoxItem
;
924
ListBoxItem
? listBoxItem = _selectedColumns.SelectedItem as
ListBoxItem
;
938
ListBoxItem
? listBoxItem = _selectedColumns.SelectedItem as
ListBoxItem
;
954
ListBoxItem
? listBoxItem = _selectedColumns.Items[e.Index] as
ListBoxItem
;
999
string columnName = ((
ListBoxItem
)_selectedColumns.Items[e.Index]).ToString();
1072
DataGridViewColumn column = ((
ListBoxItem
)_selectedColumns.SelectedItem).DataGridViewColumn;
1342
public override Type ComponentType => typeof(
ListBoxItem
);
1350
Debug.Assert(component is
ListBoxItem
, "this property descriptor only relates to the data grid view column class");
1361
ListBoxItem
item = (
ListBoxItem
)component;
1371
ListBoxItem
? item = component as
ListBoxItem
;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.cs (2)
27
DataGridViewColumnCollectionDialog.
ListBoxItem
item = (DataGridViewColumnCollectionDialog.
ListBoxItem
)context.Instance;