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