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)
25if (_ownerItem.Owner is ToolStripDropDownMenu menu) 38if (_ownerItem.Owner is ToolStripDropDownMenu menu) 69if (_ownerItem.Owner is ToolStripDropDownMenu menu) 74arrowRect.Y = LayoutUtils.VAlign(arrowRect.Size, _ownerItem.ClientBounds, ContentAlignment.MiddleCenter).Y; 89if (_ownerItem.Owner is ToolStripDropDownMenu menu) 92if (_ownerItem.CheckedImage is not null) 94int imageHeight = _ownerItem.CheckedImage.Height; 113if (_ownerItem.Owner is ToolStripDropDownMenu menu) 118if (_ownerItem.ImageScaling == ToolStripItemImageScaling.SizeToFit) 125Image? image = _ownerItem.Image ?? _ownerItem.CheckedImage; 130imageRect.Y = LayoutUtils.VAlign(imageRect.Size, _ownerItem.ClientBounds, ContentAlignment.MiddleCenter).Y; 145if (_ownerItem.Owner is ToolStripDropDownMenu menu) 159return _ownerItem.Owner is ToolStripDropDownMenu; 167if (_ownerItem.Owner is ToolStripDropDownMenu menu)