112 references to Owner
System.Windows.Forms (112)
winforms\Managed\System\WinForms\MdiWindowListItemConverter.cs (1)
32if (currentItem != null && currentItem.Owner == menu)
winforms\Managed\System\WinForms\MdiWindowListStrip.cs (1)
43if (mergeItem.Owner == null) {
winforms\Managed\System\WinForms\ToolStrip.cs (4)
2337if (dropDown.OwnerItem != null && (dropDown.OwnerItem.IsInDesignMode || (dropDown.OwnerItem.Owner != null && dropDown.OwnerItem.Owner.IsInDesignMode))) { 3688if (!IsDropDown && item.Owner == this) { 4176if (item.Owner != this) {
winforms\Managed\System\WinForms\ToolStripButton.cs (1)
251if (this.Owner != null) {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
797return toolStripComboBoxControl.Owner.Owner.AccessibilityObject;
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
847if (oldParent != null && Owner == null && newParent == null && Control != null) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (5)
428if (ownerItem != null && ownerItem.Owner != null) { 429return ownerItem.Owner.DropDownOwnerWindow; 839if (ownerItem.Placement == ToolStripItemPlacement.Overflow && ownerItem.Owner != null) { 840return ownerItem.Owner.OverflowButton.DropDown; 843return ownerItem.Owner;
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
165if (this.Owner != null) {
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (3)
830if (AccessibilityImprovements.Level3 && propertyID == NativeMethods.UIA_IsOffscreenPropertyId && owner != null && owner.Owner is ToolStripDropDown) { 831return !((ToolStripDropDown)owner.Owner).Visible; 943ToolStripDropDown dropDown = owner.Owner as ToolStripDropDown;
winforms\Managed\System\WinForms\ToolStripItem.cs (56)
707if (this.Owner != null && this.Owner is StatusStrip) { 941if (this.Owner != null) { 942parentEnabled = this.Owner.Enabled; 1143return this.Owner; 1245if (image == null && (Owner != null) && (Owner.ImageList != null) && ImageIndexer.ActualIndex >= 0) { 1246if (ImageIndexer.ActualIndex < Owner.ImageList.Images.Count) { 1248image = Owner.ImageList.Images[ImageIndexer.ActualIndex]; 1323if ((Owner != null) && ImageIndexer.Index != -1 && Owner.ImageList != null && ImageIndexer.Index >= Owner.ImageList.Images.Count) { 1324return Owner.ImageList.Images.Count - 1; 1468else if (Owner != null && Owner.IsDropDown) { 1762else if (Owner != null) { 1764currentParent = Owner as ToolStripDropDown; 1854if (Owner != null) { 1855LayoutTransaction.DoLayout(Owner, this.Owner, "Overflow"); 1914bool usingImageList = ((Owner != null) && (Owner.ImageList != null) && (ImageIndexer.ActualIndex >= 0)); 1917ToolStrip ownerToolStrip = Owner; 1926imageSize = Owner.ImageList.ImageSize; 2007if (Owner != null) { 2008return Owner.Renderer; 2035if (Owner != null) { 2036rightToLeft = (int)Owner.RightToLeft; 2339textDirection = (Owner == null) ? ToolStripTextDirection.Horizontal : Owner.TextDirection; 2533if (this.Owner != null) { 2535Debug.Assert(this.Owner.Items.Contains(this), "How can there be a owner and not be in the collection?"); 2536this.Owner.Items.Remove(this); 2692if (Owner != null) { 2693return Owner.Font; 2708return Owner as ToolStripDropDown; 2760if (Owner != null) { 2761LayoutTransaction.DoLayout(Owner, this, affectedProperty); 2764if (invalidatePainting && Owner != null) { 2765Owner.Invalidate(); 2812if (SupportsItemClick && Owner != null) { 2814Owner.HandleItemClick(this); 2819if (SupportsItemClick && Owner != null) { 2821Owner.HandleItemClicked(this); 3340if (Owner != null) { 3396if (Owner != null && !(Owner.IsDisposed || Owner.Disposing)) { 3397Owner.OnItemVisibleChanged(new ToolStripItemEventArgs(this), /*performLayout*/true); 3536if (Owner != null && Owner.IsCurrentlyDragging) { 3844parent = (IsOnOverflow && Owner != null)? Owner.OverflowButton.DropDown : Owner; 4578if ((item != null) && (item.Owner != null)) { 4579return item.Owner.ImageList;
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (2)
542if (item.Owner != null) { 543item.Owner.Items.Remove(item);
winforms\Managed\System\WinForms\ToolStripLabel.cs (1)
301if (this.Owner != null) {
winforms\Managed\System\WinForms\ToolStripManager.cs (3)
2000maction.PreviousIndexCollection = source.Owner.Items; 2016maction.PreviousIndexCollection = source.Owner.Items; 2029maction.PreviousIndexCollection = source.Owner.Items;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (16)
487ToolStrip owner = this.Owner; 1036if (Owner != null) { 1037if (Owner.Shortcuts.Contains(shortcut)) { 1039Owner.Shortcuts[shortcut] = this; 1042Owner.Shortcuts.Add(shortcut, this); 1044lastOwner = Owner; 1055if (this.Owner != null) { 1187ToolStripDropDownMenu dropDownMenu = Owner as ToolStripDropDownMenu; 1447ToolStripDropDownMenu menu = ownerItem.Owner as ToolStripDropDownMenu; 1456ToolStripDropDownMenu menu = ownerItem.Owner as ToolStripDropDownMenu; 1478ToolStripDropDownMenu menu = ownerItem.Owner as ToolStripDropDownMenu; 1493ToolStripDropDownMenu menu = ownerItem.Owner as ToolStripDropDownMenu; 1511ToolStripDropDownMenu menu = ownerItem.Owner as ToolStripDropDownMenu; 1536ToolStripDropDownMenu menu = ownerItem.Owner as ToolStripDropDownMenu; 1547return ownerItem.Owner is ToolStripDropDownMenu; 1553ToolStripDropDownMenu menu = ownerItem.Owner as ToolStripDropDownMenu;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (6)
532else if (item.Owner != null && item.BackColor != item.Owner.BackColor) { 575else if (item.Owner != null && item.BackColor != item.Owner.BackColor) { 1388else if (item.Owner != null && item.BackColor != item.Owner.BackColor) {
winforms\Managed\System\WinForms\ToolStripProgressBar.cs (3)
104if (this.Owner != null && this.Owner is StatusStrip) { 552return toolStripProgressBarControl.Owner.Owner.AccessibilityObject;
winforms\Managed\System\WinForms\ToolStripSeparator.cs (4)
286parent = Owner; 412parent = Owner; 441if (this.Owner != null && this.ParentInternal != null) { 460ToolStripDropDownMenu dropDownMenu = this.Owner as ToolStripDropDownMenu;
winforms\Managed\System\WinForms\ToolStripStatusLabel.cs (2)
147LayoutTransaction.DoLayout(Owner,this, PropertyNames.BorderStyle); 234if (this.Owner != null) {
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
912return toolStripTextBoxControl.Owner.Owner.AccessibilityObject;