4 implementations of GetControlForComponent
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ComponentTray.cs (1)
542Control IOleDragClient.GetControlForComponent(object component)
System\Windows\Forms\Design\CompositionDesigner.cs (1)
62Control IOleDragClient.GetControlForComponent(object component)
System\Windows\Forms\Design\DocumentDesigner.cs (1)
242Control IOleDragClient.GetControlForComponent(object component)
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
2540Control IOleDragClient.GetControlForComponent(object component)
9 references to GetControlForComponent
System.Windows.Forms.Design (9)
System\Windows\Forms\Design\CommandSet.cs (1)
2052Control designerControl = designer.GetControlForComponent(curComp);
System\Windows\Forms\Design\ComponentTray.cs (2)
631if (((IOleDragClient)this).GetControlForComponent(component) is TrayControl tc) 1454Control c = ((IOleDragClient)this).GetControlForComponent(o);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
245return c ?? (_componentTray is not null ? ((IOleDragClient)_componentTray).GetControlForComponent(component) : null);
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
340Control comp = Destination.GetControlForComponent(comps[i])!; 784if (Destination.GetControlForComponent(comp) is null) 794Control c = Destination.GetControlForComponent(comp)!;
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
476selectedControl = ((IOleDragClient)this).GetControlForComponent(primarySelection); 1536draggedControl = ((IOleDragClient)this).GetControlForComponent(dragComps[i]);