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