71 references to AffectedComponent
System.Windows.Forms (6)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
336ToolStripItem? item = levent.AffectedComponent as ToolStripItem;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (4)
482if (e.AffectedComponent != ParentInternal && e.AffectedComponent as Control is not null) 484if (e.AffectedComponent is ISupportToolStripPanel draggedControl && RowsInternal.Contains(draggedControl.ToolStripPanelRow!)) 488LayoutTransaction.DoLayout(draggedControl.ToolStripPanelRow, e.AffectedComponent as IArrangedElement, e.AffectedProperty);
System\Windows\Forms\Layout\LayoutEventArgs.cs (1)
33public Control? AffectedControl => AffectedComponent as Control;
System.Windows.Forms.Tests (63)
System\Windows\Forms\LayoutEventArgsTests.cs (3)
23Assert.Equal(affectedComponent, e.AffectedComponent); 40Assert.Equal(affectedControl, e.AffectedComponent); 50Assert.Null(layoutEventArgs.AffectedComponent);
System\Windows\Forms\ScrollableControlTests.cs (1)
1403Assert.Same(eventArgs?.AffectedComponent, affectedControl);
System\Windows\Forms\ToolStripItemTests.cs (57)
445Assert.Null(e.AffectedComponent); 901Assert.Same(item, e.AffectedComponent); 954Assert.Same(item, e.AffectedComponent); 2142Assert.Same(item, e.AffectedComponent); 2190Assert.Same(item, e.AffectedComponent); 3016Assert.Same(item, e.AffectedComponent); 3063Assert.Same(item, e.AffectedComponent); 3577Assert.Same(item, e.AffectedComponent); 3630Assert.Same(item, e.AffectedComponent); 3910Assert.Same(item, e.AffectedComponent); 3962Assert.Same(item, e.AffectedComponent); 4206Assert.Same(item, e.AffectedComponent); 4260Assert.Same(item, e.AffectedComponent); 4464Assert.Same(item, e.AffectedComponent); 4513Assert.Same(item, e.AffectedComponent); 4565Assert.Same(item, e.AffectedComponent); 4964Assert.Same(item, e.AffectedComponent); 5015Assert.Same(item, e.AffectedComponent); 5065Assert.Same(item, e.AffectedComponent); 5433Assert.Same(item, e.AffectedComponent); 5480Assert.Same(item, e.AffectedComponent); 5925Assert.Same(item, e.AffectedComponent); 5971Assert.Same(item, e.AffectedComponent); 6016Assert.Same(item, e.AffectedComponent); 6062Assert.Same(item, e.AffectedComponent); 6257Assert.Same(owner, e.AffectedComponent); 6309Assert.Same(owner, e.AffectedComponent); 6754Assert.Same(item, e.AffectedComponent); 6800Assert.Same(item, e.AffectedComponent); 7191Assert.Same(item, e.AffectedComponent); 7240Assert.Same(item, e.AffectedComponent); 7544Assert.Same(item, e.AffectedComponent); 7961Assert.Same(item, e.AffectedComponent); 8011Assert.Same(item, e.AffectedComponent); 8092Assert.Same(item, e.AffectedComponent); 8141Assert.Same(item, e.AffectedComponent); 8322Assert.Same(item, e.AffectedComponent); 8376Assert.Same(item, e.AffectedComponent); 8597Assert.Same(item, e.AffectedComponent); 8646Assert.Same(item, e.AffectedComponent); 8849Assert.Same(item, e.AffectedComponent); 8899Assert.Same(item, e.AffectedComponent); 9744Assert.Same(item, e.AffectedComponent); 9797Assert.Same(item, e.AffectedComponent); 10874Assert.Same(item, e.AffectedComponent); 10912Assert.Same(item, e.AffectedComponent); 11390Assert.Same(item, e.AffectedComponent); 11435Assert.Same(item, e.AffectedComponent); 12300Assert.Same(item, e.AffectedComponent); 12354Assert.Same(item, e.AffectedComponent); 12767Assert.Same(item, e.AffectedComponent); 12824Assert.Same(item, e.AffectedComponent); 13003Assert.Same(item, e.AffectedComponent); 13060Assert.Same(item, e.AffectedComponent); 13342Assert.Same(item, e.AffectedComponent); 14727Assert.Same(item, e.AffectedComponent); 14788Assert.Same(item, e.AffectedComponent);
System\Windows\Forms\ToolStripSeparatorTests.cs (2)
1530Assert.Same(item, e.AffectedComponent); 1584Assert.Same(item, e.AffectedComponent);
WindowsFormsIntegration (2)
System\Windows\Integration\WindowsFormsHost.cs (2)
1052else if (e.AffectedComponent != null) 1054compName = e.AffectedComponent.ToString();