39 references to GetCurrentParent
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
1219bool drawCurve = RoundedEdges && (item?.GetCurrentParent() is not MenuStrip); 1470if (item.GetCurrentParent() is ToolStripDropDownMenu dropDownMenu)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
738ToolStrip? parent = item.GetCurrentParent();
System.Windows.Forms.Design (36)
System\Windows\Forms\Design\DesignerUtils.cs (1)
772else if (comp is ToolStripItem item && item.GetCurrentParent() is null)
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (1)
281Control? parent = item.GetCurrentParent();
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
736ToolStripDropDown dropDown = (ToolStripDropDown)((DesignerToolStripControlHost)comp).GetCurrentParent(); 795if (designerItem.GetCurrentParent() is ToolStripDropDown parent) 1641topmost = topmost?.OwnerItem.GetCurrentParent() as ToolStripDropDown;
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (2)
449(originalSelComps.Count == 1 && selItem.GetCurrentParent() != nextSelection.GetCurrentParent()) ||
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
445if (item.GetCurrentParent() is not ToolStripDropDown parent)
System\Windows\Forms\Design\ToolStripInSituService.cs (2)
85if (c.GetCurrentParent() is ToolStripDropDown dropDown) 106if (c.GetCurrentParent() is MenuStrip tool)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (6)
50ToolStrip oldSelectionParent = oldSelection.GetCurrentParent(); 51ToolStrip newSelectionParent = newSelection.GetCurrentParent(); 402parent = glyphItem.GetCurrentParent(); 611ToolStripDropDown dropDown = glyphItem.GetCurrentParent() as ToolStripDropDown; 654ToolStrip parentToolStrip = currentDropItem.GetCurrentParent(); 792if (item.GetCurrentParent() is ToolStripDropDown dropDown && !(dropDown is ToolStripOverflow))
System\Windows\Forms\Design\ToolStripItemDesigner.cs (4)
159ToolStrip parent = ToolStripItem.GetCurrentParent(); 489protected virtual Component GetOwnerForActionList() => (ToolStripItem.Placement == ToolStripItemPlacement.Main) ? ToolStripItem.GetCurrentParent() : ToolStripItem.Owner; 566ToolStrip parent = ToolStripItem.GetCurrentParent(); 893if (ToolStripItem.GetCurrentParent() is ToolStripDropDown
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (11)
173ToolStrip owner = curDesignerNode.GetCurrentParent(); 607parent = item.GetCurrentParent(); 679ToolStrip parent = item.GetCurrentParent(); 724ToolStrip parent = item.GetCurrentParent(); 765ToolStrip parent = selectedItem.GetCurrentParent(); 1203if (toolStripItem is DesignerToolStripControlHost && toolStripItem.GetCurrentParent() is ToolStripDropDown parent) 1263ToolStrip mainTool = owner.GetCurrentParent(); 1351parentToMoveOn = item.GetCurrentParent() as ToolStripDropDown; 1372parentToMoveOn = item.GetCurrentParent() as ToolStripDropDown; 1837ToolStrip parent = item.GetCurrentParent(); 1937ToolStrip parent = item.GetCurrentParent();
System\Windows\Forms\Design\ToolStripMenuItemCodeDomSerializer.cs (1)
39ToolStrip? parent = item.GetCurrentParent();
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (3)
1531if ((topMostItem is not null && topMostItem.GetCurrentParent() is ToolStripOverflow) && !main.CanOverflow) 1619Rectangle hostingDropDownBounds = (MenuItem.GetCurrentParent()).Bounds; 2632ToolStripDropDown parentToolStrip = primaryItem.GetCurrentParent() as ToolStripDropDown;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
413ToolStrip parent = _controlHost.GetCurrentParent();