12 writes to ParentInternal
System.Windows.Forms (12)
winforms\Managed\System\WinForms\ToolStrip.cs (3)
921toolStripGrip.ParentInternal = this; 1521toolStripOverflowButton.ParentInternal = this; 4441item.ParentInternal = this;
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (2)
152downScrollButton.ParentInternal = this; 262upScrollButton.ParentInternal = this;
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
1827ParentInternal = value; 3588this.ParentInternal = null;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (5)
350item.ParentInternal = ToolStrip; 374item.ParentInternal = (item.Placement == ToolStripItemPlacement.Overflow) ? toolStrip.OverflowButton.DropDown : null; 474item.ParentInternal = ToolStrip; 499item.ParentInternal = (item.Placement == ToolStripItemPlacement.Overflow) ? toolStrip.OverflowButton.DropDown : null; 572toolStrip.Items[i].ParentInternal = null;
189 references to ParentInternal
System.Windows.Forms (189)
winforms\Managed\System\WinForms\ToolStrip.cs (4)
1304(lastMouseDownedItem.IsDisposed || lastMouseDownedItem.ParentInternal != this)){ 3292if (Items[i] != null && Items[i].ParentInternal == this) { 4033if (bounds.IntersectsWith(comparisonRect) && lastMouseActiveItem.ParentInternal == this) { 4041if (DisplayedItems[i] == null || DisplayedItems[i].ParentInternal != this) {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (4)
522if (ParentInternal != null) { 525Application.ThreadContext.FromCurrent().RemoveMessageFilter(ParentInternal.RestoreFocusFilter); 532if (ParentInternal != null) { 535Application.ThreadContext.FromCurrent().RemoveMessageFilter(ParentInternal.RestoreFocusFilter);
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
980WindowsFormsUtils.ReadOnlyControlCollection newControls = GetControlCollection(ParentInternal);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
833ToolStrip owner = ownerItem.ParentInternal; 1892parentToolStrip = this.OwnerItem.ParentInternal;
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (6)
133Debug.Assert(ParentInternal != null, "Parent is null here, not going to get accurate ID"); 134openMouseId = (ParentInternal == null) ? (byte)0: ParentInternal.GetMouseId(); 144Debug.Assert(ParentInternal != null, "Parent is null here, not going to get accurate ID"); 145byte closeMouseId = (ParentInternal == null) ? (byte)0: ParentInternal.GetMouseId();
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (5)
71if (ParentInternal != null) { 72dropDown.ShowItemToolTips = ParentInternal.ShowItemToolTips; 112ToolStrip parent = ParentInternal; 194if (ParentInternal == null || !HasDropDownItems) { 692if (this.DropDown == this.ParentInternal) {
winforms\Managed\System\WinForms\ToolStripGrip.cs (22)
74if ((movingToolStrip != value) && ParentInternal != null) { 77if (ParentInternal.ToolStripPanelRow == null) { 84((ISupportToolStripPanel)this.ParentInternal).BeginDrag(); 87((ISupportToolStripPanel)this.ParentInternal).EndDrag(); 95return (ParentInternal == null) ? null : ((ISupportToolStripPanel)ParentInternal).ToolStripPanelRow; 106if (this.ParentInternal != null) { 107if (this.ParentInternal.LayoutStyle == ToolStripLayoutStyle.VerticalStackWithOverflow) { 108preferredSize = new Size(this.ParentInternal.Width, gripThickness); 111preferredSize = new Size(gripThickness, this.ParentInternal.Height); 134if (ParentInternal != null) { 135ParentInternal.OnPaintGrip(e); 183ToolStripPanelRow.ToolStripPanel.MoveControl(ParentInternal, /*startLocation,*/endLocation ); 200if ((ParentInternal != null) && (ToolStripPanelRow != null) && (!ParentInternal.IsInDesignMode)) { 201oldCursor = ParentInternal.Cursor; 202SetCursor(ParentInternal, Cursors.SizeAll); 216if (oldCursor != null && !ParentInternal.IsInDesignMode) { 217SetCursor(ParentInternal,oldCursor); 230ToolStripPanelRow.ToolStripPanel.MoveControl(ParentInternal, /*startLocation,*/endLocation ); 233if (!ParentInternal.IsInDesignMode) { 234SetCursor(ParentInternal, oldCursor);
winforms\Managed\System\WinForms\ToolStripItem.cs (88)
355if ((this.ParentInternal != null) && this.ParentInternal.IsHandleCreated) { 356this.ParentInternal.PerformLayout(); 547Control p = ParentInternal; 660if (ParentInternal != null) { 661LayoutTransaction.DoLayout(this, ParentInternal, PropertyNames.Anchor); 687if (ParentInternal != null) { 688LayoutTransaction.DoLayout(this, ParentInternal, PropertyNames.Dock); 920if ((ParentInternal != null) && (ParentInternal.AllowItemReorder) && (ParentInternal.ItemReorderDropSource != null)) { 921return new DropSource(ParentInternal.ItemReorderDropSource); 997if (ParentInternal != null) { 999ParentInternal.DropTargetManager.EnsureRegistered(this); 1019Control p = ParentInternal; 1142if (this.ParentInternal == null) { 1145return this.ParentInternal; 1429Control parent = ParentInternal; 1465if (ParentInternal != null) { 1466return ParentInternal.IsDropDown; 1759if (ParentInternal != null) { 1760currentParent = ParentInternal as ToolStripDropDown; 1824return ParentInternal; 2010return (ParentInternal != null) ? ParentInternal.Renderer : null; 2038else if (ParentInternal != null) { 2040rightToLeft = (int)ParentInternal.RightToLeft; 2150(ParentInternal != null && ParentInternal.IsSelectionSuspended && 2151ParentInternal.LastMouseDownedItem == this)); 2334if (this.ParentInternal != null) { 2336textDirection = ParentInternal.TextDirection; 2412return (ParentInternal!=null) && (ParentInternal.Visible) && Available; 2459if (ParentInternal != null) { 2460int index = ParentInternal.DisplayedItems.IndexOf(this); 2461ParentInternal.AccessibilityNotifyClients(accEvent, index); 2466Animate(!DesignMode && Visible && Enabled && ParentInternal != null); 2494if (this.ParentInternal.Items.Contains(this) && this.ParentInternal.AllowItemReorder) { 2623if (!Enabled && ParentInternal != null && !string.IsNullOrEmpty(ToolTipText)) { 2624ParentInternal.UpdateToolTip(this); 2636if (!Enabled && ParentInternal != null) { 2637ParentInternal.UpdateToolTip(null); 2646if (!Enabled && ParentInternal != null) { 2704if (ParentInternal != null) { 2705return ParentInternal as ToolStripDropDown; 2736if (this.ParentInternal != null) { 2737ParentInternal.Invalidate(this.Bounds, true); 2752if (this.ParentInternal != null) { 2753ParentInternal.Invalidate(new Rectangle(rectangleLocation, r.Size), true); 2781if (this.ParentInternal != null) { 2782this.ParentInternal.InvokePaintItem(this); 2844if (ParentInternal != null 2845&& ParentInternal.CanHotTrack 2846&& ParentInternal.ShouldSelectItem()) { 2851bool autoExpand = ParentInternal.MenuAutoExpand; 2853if (ParentInternal.LastMouseDownedItem == this) { 2861ParentInternal.MenuAutoExpand = autoExpand; 2884if (ParentInternal != null 2885&& ParentInternal.CanHotTrack 2886&& ParentInternal.ShouldSelectItem()) { 2939bool fireMouseUp = (ParentInternal.LastMouseDownedItem == this); 2947fireMouseUp = ParentInternal.ShouldSelectItem(); 3007LayoutTransaction.DoLayout(this.ParentInternal, this, PropertyNames.Bounds); 3062ToolStrip parent = ParentInternal; 3229if (ParentInternal != null && !string.IsNullOrEmpty(ToolTipText)) { 3230ParentInternal.UpdateToolTip(this); 3238if (ParentInternal != null) { 3239ParentInternal.UpdateToolTip(null); 3435if (ParentInternal != null && !ParentInternal.IsDropDown && !(AccessibilityImprovements.Level2 && !Enabled)) { 3436ParentInternal.RestoreFocusInternal(); 3540if (ParentInternal != null && ParentInternal.IsSelectionSuspended) { 3547if (ParentInternal != null) { 3548ParentInternal.NotifySelectionChange(this); 3841ToolStrip parent = ParentInternal; 3908return item.ParentInternal; 3932if (ParentInternal != null) { 3933ParentInternal.NotifySelectionChange(this); 4003Debug.Assert(this.ParentInternal != null, "Tool Strip Item Parent is null"); 4004return this.ParentInternal; 4333ToolStrip parent = Owner.ParentInternal; 4404if (Owner.ParentInternal != null && 4405Owner.ParentInternal.Visible) { 4406return new Rectangle(Owner.ParentInternal.PointToScreen(bounds.Location), bounds.Size); 4648return (ownerItem != null) ? ownerItem.ParentInternal : null;
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (8)
429parent = item.ParentInternal; 504if (value.ParentInternal != null) { 505int indexOfItem = value.ParentInternal.Items.IndexOf(value); 507value.ParentInternal.Items.RemoveAt(indexOfItem); 522if (value.ParentInternal != null) { 523int indexOfItem = value.ParentInternal.Items.IndexOf(value); 526value.ParentInternal.Items.RemoveAt(indexOfItem); 528if ((value.ParentInternal == owner) && (index > indexOfItem)) {
winforms\Managed\System\WinForms\ToolStripItemRenderEventArgs.cs (1)
54return item.ParentInternal;
winforms\Managed\System\WinForms\ToolStripLabel.cs (3)
344if (ParentInternal != null) { 346ParentInternal.SetFocusUnsafe(); 347ParentInternal.SelectNextToolStripItem(this, /*forward=*/true);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (18)
506LayoutTransaction.DoLayout(this.ParentInternal, this, "ShortcutKeys"); 530ToolStripDropDown parent = this.ParentInternal as ToolStripDropDown; 562ToolStripDropDown parent = this.ParentInternal as ToolStripDropDown; 579return (this.ParentInternal as ToolStripDropDown == null); 854if (Enabled && ParentInternal != null && ParentInternal.MenuAutoExpand && HasDropDownItems) { 923if (ParentInternal != null) { 924ParentInternal.MenuAutoExpand = true; 976Debug.Assert(ParentInternal != null, "Parent is null here, not going to get accurate ID"); 977openMouseId = (ParentInternal == null) ? (byte)0: ParentInternal.GetMouseId(); 984Debug.Assert(ParentInternal != null, "Parent is null here, not going to get accurate ID"); 985byte closeMouseId = (ParentInternal == null) ? (byte)0: ParentInternal.GetMouseId(); 1004Debug.Assert(this.ParentInternal != null, "Why is parent null"); 1007if (this.ParentInternal != null && this.ParentInternal.MenuAutoExpand && Selected) { 1398if (InTransition && toolStrip == fromItem.ParentInternal) {
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (10)
68return this.ParentInternal.OverflowItems.Count > 0; 108if (this.ParentInternal != null) { 109if (this.ParentInternal.Orientation == Orientation.Horizontal) { 121if (ParentInternal != null && ParentInternal.LayoutEngine is ToolStripSplitStackLayout) { 123if (ParentInternal.Orientation == Orientation.Horizontal) { 124bounds.Height = ParentInternal.Height; 128bounds.Width = ParentInternal.Width; 137if (this.ParentInternal != null) { 138ToolStripRenderer renderer = this.ParentInternal.Renderer;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (1)
658ToolStripDropDownMenu dropDownMenu = item.ParentInternal as ToolStripDropDownMenu;
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (1)
111if (ownerItem !=null && ownerItem.ParentInternal != null && !ownerItem.IsOnDropDown) {
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (3)
154preferredSize.Width = (ParentInternal != null) ? ParentInternal.Width - 2 : preferredSize.Width; // Two for border 159ToolStripDropDownMenu parent = this.ParentInternal as ToolStripDropDownMenu;
winforms\Managed\System\WinForms\ToolStripSeparator.cs (3)
283ToolStrip parent = this.ParentInternal; 409ToolStrip parent = this.ParentInternal; 441if (this.Owner != null && this.ParentInternal != null) {
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (7)
518Debug.Assert(ParentInternal != null, "Parent is null here, not going to get accurate ID"); 519openMouseId = (ParentInternal == null) ? (byte)0: ParentInternal.GetMouseId(); 546Debug.Assert(ParentInternal != null, "Parent is null here, not going to get accurate ID"); 547byte closeMouseId = (ParentInternal == null) ? (byte)0: ParentInternal.GetMouseId(); 764return owner.ParentInternal;
winforms\Managed\System\WinForms\ToolStripStatusLabel.cs (2)
179if (ParentInternal != null) { 180LayoutTransaction.DoLayout(ParentInternal, this, PropertyNames.Spring);