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