25 references to OwnerToolStrip
System.Windows.Forms (25)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
1497
if (dropDown.
OwnerToolStrip
is not null)
1499
return dropDown.
OwnerToolStrip
.Renderer;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (21)
464
get => IsAutoGenerated &&
OwnerToolStrip
is not null
465
?
OwnerToolStrip
.ImageScalingSizeInternal
473
get =>
OwnerToolStrip
is { } ownerToolStrip ? ownerToolStrip.KeyboardActive : base.KeyboardActive;
478
if (
OwnerToolStrip
is { } ownerToolStrip)
1060
return (topmost.OwnerItem is null) ? null : topmost.
OwnerToolStrip
;
1213
if (
OwnerToolStrip
is not null && OwnerItem is not null)
1215
if (OwnerItem.Bounds.Contains(WindowsFormsUtils.TranslatePoint(mea.Location, this,
OwnerToolStrip
)))
1253
if (
OwnerToolStrip
is not null)
1257
if (!
OwnerToolStrip
.IsDropDown)
1259
if (ToolStripManager.ModalMenuFilter.GetActiveToolStrip() !=
OwnerToolStrip
)
1261
ToolStripManager.ModalMenuFilter.SetActiveToolStrip(
OwnerToolStrip
);
1265
OwnerToolStrip
.MenuAutoExpand = false;
1269
if (
OwnerToolStrip
.CanSelect)
1602
if (
OwnerToolStrip
is not null)
1604
OwnerToolStrip
.ActiveDropDowns.Add(this);
1608
OwnerToolStrip
.SnapMouseLocation();
1611
if (
OwnerToolStrip
.Capture)
1718
OwnerToolStrip
?.ActiveDropDowns.Remove(this);
2011
internal bool IsFirstDropDown =>
OwnerToolStrip
as ToolStripDropDown is null;
2020
ToolStripDropDown? ownerDropDown = topmost.
OwnerToolStrip
as ToolStripDropDown;
2024
ownerDropDown = topmost.
OwnerToolStrip
as ToolStripDropDown;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (2)
339
if (!(activeToolStripDropDown.
OwnerToolStrip
is not null
340
&& activeToolStripDropDown.
OwnerToolStrip
.HWND == hwndMouseMessageIsFrom