29 references to OwnerItem
System.Windows.Forms (8)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (2)
500? OwnerItem?.IsAccessibilityObjectCreated ?? false 788if (!currentFont.Equals(childItem.OwnerItem?.Font))
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (6)
3143if (OwnerItem is not null && OwnerItem.IsOnDropDown) 3146OwnerItem.Select(); 3168? OwnerItem?.IsAccessibilityObjectCreated ?? false 3503while (item.OwnerItem is not null) 3505item = item.OwnerItem;
System.Windows.Forms.Tests (21)
System\Windows\Forms\ToolStripButtonTests.cs (6)
73Assert.Null(item.OwnerItem); 154Assert.Null(item.OwnerItem); 241Assert.Null(item.OwnerItem); 331Assert.Null(item.OwnerItem); 419Assert.Null(item.OwnerItem); 517Assert.Null(item.OwnerItem);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
102Assert.Null(item.OwnerItem);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
73Assert.Null(item.OwnerItem); 162Assert.Null(item.OwnerItem); 261Assert.Null(item.OwnerItem); 369Assert.Null(item.OwnerItem);
System\Windows\Forms\ToolStripItemTests.cs (8)
72Assert.Null(item.OwnerItem); 157Assert.Null(item.OwnerItem); 252Assert.Null(item.OwnerItem); 6635Assert.Null(item.OwnerItem); 6656Assert.Same(result, item.OwnerItem); 6667Assert.Null(item.OwnerItem); 6682Assert.Same(result, item.OwnerItem); 6703Assert.Same(parentItem, item.OwnerItem);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
80Assert.Null(item.OwnerItem);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
70Assert.Null(item.OwnerItem);