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