16 references to Component
System.Windows.Forms.Design (16)
System\Windows\Forms\Design\ComponentTray.cs (16)
917if (control.Component == component) 922return ((TrayControl)_controls[targetIndex]).Component; 934return ((TrayControl)_controls[targetIndex]).Component; 1018if (control is TrayControl tc && tc.Component == comp) 1378list.Add(tc.Component); 1723if (!CanDisplayComponent(c.Component)) 1749Debug.Assert(c.Visible, $"TrayControl for {c.Component} should not be positioned"); 1805Debug.Assert(Visible == c.Visible, $"TrayControl for {((TrayControl)c).Component} should not be positioned"); 1814Debug.Assert(c.Visible, $"TrayControl for {c.Component} should not be positioned"); 1832IComponent comp = c.Component; 1867IComponent comp = c.Component; 2117sel?.SetSelectedComponents(new object[] { Component }, SelectionTypes.Primary); 2164sel?.SetSelectedComponents(new object[] { Component }, SelectionTypes.Primary); 2207sel?.SetSelectedComponents(new object[] { Component }, SelectionTypes.Primary); 2572get => ((TrayControl)Owner).Component; 2752if (g is DesignerActionGlyph desGlyph && ((DesignerActionBehavior)(desGlyph.Behavior)).RelatedComponent.Equals(trayControl.Component))