1 write to Element
System.ComponentModel.TypeConverter (1)
System\ComponentModel\CollectionChangeEventArgs.cs (1)
17
Element
= element;
29 references to Element
System.Data.Common (11)
System\Data\DataView.cs (6)
1636
e.Action == CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.
Element
!)) :
1638
e.Action == CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.
Element
!)) :
1647
e.Action == CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.
Element
!)) :
1649
e.Action == CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.
Element
!)) :
1658
e.Action == CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataColumnPropertyDescriptor((System.Data.DataColumn)e.
Element
!)) :
1660
e.Action == CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataColumnPropertyDescriptor((System.Data.DataColumn)e.
Element
!)) :
System\Data\DataViewManager.cs (4)
334
e.Action == CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataTablePropertyDescriptor((System.Data.DataTable)e.
Element
!)) :
336
e.Action == CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataTablePropertyDescriptor((System.Data.DataTable)e.
Element
!)) :
345
e.Action == CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.
Element
!)) :
347
e.Action == CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.
Element
!)) :
System\Xml\XmlDataDocument.cs (1)
2204
DataRelation? rel = (DataRelation?)(args.
Element
);
System.Windows.Forms (5)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
13257
DataGridViewColumn dataGridViewColumn = (DataGridViewColumn)ccea.
Element
!;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
974
DataGridViewColumn? dataGridViewColumn = (DataGridViewColumn?)ccea.
Element
;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (2)
1912
DataGridViewRow? dataGridViewRow = (DataGridViewRow?)e.
Element
;
1938
DataGridViewRow? dataGridViewRow = (DataGridViewRow?)e.
Element
;
System\Windows\Forms\DataBinding\BindingManagerBase.cs (1)
299
if (e.
Element
is not Binding binding)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
99
_selectedColumns.SelectedIndex = _columnsPrivateCopy.IndexOf((DataGridViewColumn)e.
Element
!);
System.Windows.Forms.Tests (12)
System\Windows\Forms\BindingsCollectionTests.cs (12)
47
Assert.Same(binding, e.
Element
);
55
Assert.Same(binding, e.
Element
);
113
Assert.Same(binding, e.
Element
);
121
Assert.Same(binding, e.
Element
);
182
Assert.Null(e.
Element
);
190
Assert.Null(e.
Element
);
242
Assert.Null(e.
Element
);
250
Assert.Null(e.
Element
);
313
Assert.Same(binding, e.
Element
);
321
Assert.Same(binding, e.
Element
);
418
Assert.Same(binding, e.
Element
);
426
Assert.Same(binding, e.
Element
);