1 write to _ownerItem
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (1)
18
_ownerItem
= ownerItem;
15 references to _ownerItem
System.Windows.Forms (15)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (15)
25
if (
_ownerItem
.Owner is ToolStripDropDownMenu menu)
38
if (
_ownerItem
.Owner is ToolStripDropDownMenu menu)
69
if (
_ownerItem
.Owner is ToolStripDropDownMenu menu)
74
arrowRect.Y = LayoutUtils.VAlign(arrowRect.Size,
_ownerItem
.ClientBounds, ContentAlignment.MiddleCenter).Y;
89
if (
_ownerItem
.Owner is ToolStripDropDownMenu menu)
92
if (
_ownerItem
.CheckedImage is not null)
94
int imageHeight =
_ownerItem
.CheckedImage.Height;
113
if (
_ownerItem
.Owner is ToolStripDropDownMenu menu)
118
if (
_ownerItem
.ImageScaling == ToolStripItemImageScaling.SizeToFit)
125
Image? image =
_ownerItem
.Image ??
_ownerItem
.CheckedImage;
130
imageRect.Y = LayoutUtils.VAlign(imageRect.Size,
_ownerItem
.ClientBounds, ContentAlignment.MiddleCenter).Y;
145
if (
_ownerItem
.Owner is ToolStripDropDownMenu menu)
159
return
_ownerItem
.Owner is ToolStripDropDownMenu;
167
if (
_ownerItem
.Owner is ToolStripDropDownMenu menu)