1 instantiation of TrayControl
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ComponentTray.cs (1)
705TrayControl trayctl = new(this, component);
46 references to TrayControl
System.Windows.Forms.Design (46)
System\ComponentModel\Design\DesignerActionUI.cs (1)
195ComponentTray.TrayControl trayControl = ComponentTray.GetTrayControlFromComponent(comp);
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (1)
147ComponentTray.TrayControl trayControl = ComponentTray.GetTrayControlFromComponent(relatedComponent);
System\Windows\Forms\Design\ComponentTray.cs (43)
192TrayControl control = TrayControl.FromComponent(component); 229if (children[i] is TrayControl tc) 250Control c = TrayControl.FromComponent(component); 264Control c = TrayControl.FromComponent(comp); 384PositionInNextAutoSlot(ctl as TrayControl, prevCtl, dirtyDesigner); 386else if (!((TrayControl)ctl).Positioned || !positionedGlobal) 388PositionInNextAutoSlot(ctl as TrayControl, prevCtl, false); 483return (extendee is IComponent comp) && (TrayControl.FromComponent(comp) is not null); 504PositionControl(TrayControl.FromComponent(component)); 546return TrayControl.FromComponent(comp); 601TrayControl tc = TrayControl.FromComponent(comp); 631if (((IOleDragClient)this).GetControlForComponent(component) is TrayControl tc) 705TrayControl trayctl = new(this, component); 922TrayControl control = (TrayControl)_controls[i]; 928return ((TrayControl)_controls[targetIndex]).Component; 940return ((TrayControl)_controls[targetIndex]).Component; 985Control c = TrayControl.FromComponent(receiver); 1017if (TrayControl.FromComponent(comp) is null) 1024if (control is TrayControl tc && tc.Component == comp) 1382if (child is TrayControl tc && bounds.IntersectsWith(rect)) 1505TrayControl c = TrayControl.FromComponent(component); 1565TrayControl c = TrayControl.FromComponent(receiver); 1650internal static TrayControl GetTrayControlFromComponent(IComponent comp) 1652return TrayControl.FromComponent(comp); 1727foreach (TrayControl c in components) 1753private void PositionControl(TrayControl c) 1811Debug.Assert(Visible == c.Visible, $"TrayControl for {((TrayControl)c).Component} should not be positioned"); 1813TrayControl tc = (TrayControl)c; 1818private bool PositionInNextAutoSlot(TrayControl c, Control prevCtl, bool dirtyDesigner) 2036ds.SetValue(typeof(TrayControl), null); 2047public static TrayControl FromComponent(IComponent component) 2056return (TrayControl)ds.GetValue(typeof(TrayControl)); 2571public TrayControlAccessibleObject(TrayControl owner, ComponentTray tray) : base(owner) 2578get => ((TrayControl)Owner).Component; 2756public void UpdateLocation(TrayControl trayControl) 2854return TrayControl.FromComponent(component);
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
129ComponentTray.TrayControl? trayControl = ComponentTray.GetTrayControlFromComponent(component);