2 writes to OwnerItem
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (2)
513DropDown.OwnerItem = null; 696this.dropDown.OwnerItem = this;
44 references to OwnerItem
System.Windows.Forms (44)
winforms\Managed\System\WinForms\ToolStrip.cs (6)
2287if (dropDown.OwnerItem != null && dropDown.OwnerItem.IsInDesignMode) { 2337if (dropDown.OwnerItem != null && (dropDown.OwnerItem.IsInDesignMode || (dropDown.OwnerItem.Owner != null && dropDown.OwnerItem.Owner.IsInDesignMode))) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (24)
487if (IsAutoGenerated && OwnerItem != null) { 488return OwnerItem.Font; 827get { return OwnerItem as ToolStripDropDownItem; } 894if (OwnerItem != null) { 895return OwnerItem.RightToLeft; 1285return (topmost.OwnerItem == null) ? null : topmost.OwnerToolStrip; 1290return topmost.OwnerItem; 1453if (OwnerToolStrip != null && OwnerItem != null) { 1454if (OwnerItem.Bounds.Contains(WindowsFormsUtils.TranslatePoint(mea.Location, this, OwnerToolStrip))) { 1467using (new LayoutTransaction(this, OwnerItem, PropertyNames.Font)) { 1476ToolStripItem itemOnPreviousMenuToSelect = this.OwnerItem; 1550bool isOnOverflow = (OwnerItem != null && OwnerItem.IsOnOverflow); 1578if (this.OwnerItem != null && this.OwnerItem.IsInDesignMode) { 1615if ((OwnerItem == null || OwnerItem.Pressed) && charCode != ' ') { 1891if (this.OwnerItem != null) { 1892parentToolStrip = this.OwnerItem.ParentInternal; 1979if (!DesignMode && IsFirstDropDown && OwnerItem != null && TopLevel) { 2045if (this.OwnerItem == null && control.RightToLeft == RightToLeft.Yes) { 2310if (owner.OwnerItem != null && owner.OwnerItem.AccessibilityObject.Name != null) { 2311name = owner.OwnerItem.AccessibilityObject.Name + name;
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (4)
283return DropDown.OwnerItem == this && DropDown.Visible; 494if (DropDown.OwnerItem == this) { 508if (DropDown.OwnerItem == this) { 528if (DropDown.OwnerItem == this) {
winforms\Managed\System\WinForms\ToolStripItem.cs (5)
1768return currentParent.OwnerItem; 3983if (dropDown != null && dropDown.OwnerItem != null) { 3984neighbors.Add(((IKeyboardToolTip)dropDown.OwnerItem).GetNativeScreenRectangle()); 4423if (dropDown.OwnerItem != null) { 4424return dropDown.OwnerItem.AccessibilityObject;
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (1)
243if (dropDown.OwnerItem == value) {
winforms\Managed\System\WinForms\ToolStripManager.cs (2)
1015if (activeToolStripDropDown.OwnerItem != null) { 1016activeToolStripDropDown.OwnerItem.Unselect();
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
1414ToolStripMenuItem menuItem = (dropDown == null) ? null : dropDown.OwnerItem as ToolStripMenuItem;
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (1)
105ToolStripDropDownItem ownerItem = dropDown.OwnerItem as ToolStripDropDownItem;