112 references to Owner
System.Windows.Forms (112)
winforms\Managed\System\WinForms\MdiWindowListItemConverter.cs (1)
32
if (currentItem != null && currentItem.
Owner
== menu)
winforms\Managed\System\WinForms\MdiWindowListStrip.cs (1)
43
if (mergeItem.
Owner
== null) {
winforms\Managed\System\WinForms\ToolStrip.cs (4)
2337
if (dropDown.OwnerItem != null && (dropDown.OwnerItem.IsInDesignMode || (dropDown.OwnerItem.
Owner
!= null && dropDown.OwnerItem.
Owner
.IsInDesignMode))) {
3688
if (!IsDropDown && item.
Owner
== this) {
4176
if (item.
Owner
!= this) {
winforms\Managed\System\WinForms\ToolStripButton.cs (1)
251
if (this.
Owner
!= null) {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
797
return toolStripComboBoxControl.Owner.
Owner
.AccessibilityObject;
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
847
if (oldParent != null &&
Owner
== null && newParent == null && Control != null) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (5)
428
if (ownerItem != null && ownerItem.
Owner
!= null) {
429
return ownerItem.
Owner
.DropDownOwnerWindow;
839
if (ownerItem.Placement == ToolStripItemPlacement.Overflow && ownerItem.
Owner
!= null) {
840
return ownerItem.
Owner
.OverflowButton.DropDown;
843
return ownerItem.
Owner
;
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
165
if (this.
Owner
!= null) {
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (3)
830
if (AccessibilityImprovements.Level3 && propertyID == NativeMethods.UIA_IsOffscreenPropertyId && owner != null && owner.
Owner
is ToolStripDropDown) {
831
return !((ToolStripDropDown)owner.
Owner
).Visible;
943
ToolStripDropDown dropDown = owner.
Owner
as ToolStripDropDown;
winforms\Managed\System\WinForms\ToolStripItem.cs (56)
707
if (this.
Owner
!= null && this.
Owner
is StatusStrip) {
941
if (this.
Owner
!= null) {
942
parentEnabled = this.
Owner
.Enabled;
1143
return this.
Owner
;
1245
if (image == null && (
Owner
!= null) && (
Owner
.ImageList != null) && ImageIndexer.ActualIndex >= 0) {
1246
if (ImageIndexer.ActualIndex <
Owner
.ImageList.Images.Count) {
1248
image =
Owner
.ImageList.Images[ImageIndexer.ActualIndex];
1323
if ((
Owner
!= null) && ImageIndexer.Index != -1 &&
Owner
.ImageList != null && ImageIndexer.Index >=
Owner
.ImageList.Images.Count) {
1324
return
Owner
.ImageList.Images.Count - 1;
1468
else if (
Owner
!= null &&
Owner
.IsDropDown) {
1762
else if (
Owner
!= null) {
1764
currentParent =
Owner
as ToolStripDropDown;
1854
if (
Owner
!= null) {
1855
LayoutTransaction.DoLayout(
Owner
, this.
Owner
, "Overflow");
1914
bool usingImageList = ((
Owner
!= null) && (
Owner
.ImageList != null) && (ImageIndexer.ActualIndex >= 0));
1917
ToolStrip ownerToolStrip =
Owner
;
1926
imageSize =
Owner
.ImageList.ImageSize;
2007
if (
Owner
!= null) {
2008
return
Owner
.Renderer;
2035
if (
Owner
!= null) {
2036
rightToLeft = (int)
Owner
.RightToLeft;
2339
textDirection = (
Owner
== null) ? ToolStripTextDirection.Horizontal :
Owner
.TextDirection;
2533
if (this.
Owner
!= null) {
2535
Debug.Assert(this.
Owner
.Items.Contains(this), "How can there be a owner and not be in the collection?");
2536
this.
Owner
.Items.Remove(this);
2692
if (
Owner
!= null) {
2693
return
Owner
.Font;
2708
return
Owner
as ToolStripDropDown;
2760
if (
Owner
!= null) {
2761
LayoutTransaction.DoLayout(
Owner
, this, affectedProperty);
2764
if (invalidatePainting &&
Owner
!= null) {
2765
Owner
.Invalidate();
2812
if (SupportsItemClick &&
Owner
!= null) {
2814
Owner
.HandleItemClick(this);
2819
if (SupportsItemClick &&
Owner
!= null) {
2821
Owner
.HandleItemClicked(this);
3340
if (
Owner
!= null) {
3396
if (
Owner
!= null && !(
Owner
.IsDisposed ||
Owner
.Disposing)) {
3397
Owner
.OnItemVisibleChanged(new ToolStripItemEventArgs(this), /*performLayout*/true);
3536
if (
Owner
!= null &&
Owner
.IsCurrentlyDragging) {
3844
parent = (IsOnOverflow &&
Owner
!= null)?
Owner
.OverflowButton.DropDown :
Owner
;
4578
if ((item != null) && (item.
Owner
!= null)) {
4579
return item.
Owner
.ImageList;
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (2)
542
if (item.
Owner
!= null) {
543
item.
Owner
.Items.Remove(item);
winforms\Managed\System\WinForms\ToolStripLabel.cs (1)
301
if (this.
Owner
!= null) {
winforms\Managed\System\WinForms\ToolStripManager.cs (3)
2000
maction.PreviousIndexCollection = source.
Owner
.Items;
2016
maction.PreviousIndexCollection = source.
Owner
.Items;
2029
maction.PreviousIndexCollection = source.
Owner
.Items;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (16)
487
ToolStrip owner = this.
Owner
;
1036
if (
Owner
!= null) {
1037
if (
Owner
.Shortcuts.Contains(shortcut)) {
1039
Owner
.Shortcuts[shortcut] = this;
1042
Owner
.Shortcuts.Add(shortcut, this);
1044
lastOwner =
Owner
;
1055
if (this.
Owner
!= null) {
1187
ToolStripDropDownMenu dropDownMenu =
Owner
as ToolStripDropDownMenu;
1447
ToolStripDropDownMenu menu = ownerItem.
Owner
as ToolStripDropDownMenu;
1456
ToolStripDropDownMenu menu = ownerItem.
Owner
as ToolStripDropDownMenu;
1478
ToolStripDropDownMenu menu = ownerItem.
Owner
as ToolStripDropDownMenu;
1493
ToolStripDropDownMenu menu = ownerItem.
Owner
as ToolStripDropDownMenu;
1511
ToolStripDropDownMenu menu = ownerItem.
Owner
as ToolStripDropDownMenu;
1536
ToolStripDropDownMenu menu = ownerItem.
Owner
as ToolStripDropDownMenu;
1547
return ownerItem.
Owner
is ToolStripDropDownMenu;
1553
ToolStripDropDownMenu menu = ownerItem.
Owner
as ToolStripDropDownMenu;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (6)
532
else if (item.
Owner
!= null && item.BackColor != item.
Owner
.BackColor) {
575
else if (item.
Owner
!= null && item.BackColor != item.
Owner
.BackColor) {
1388
else if (item.
Owner
!= null && item.BackColor != item.
Owner
.BackColor) {
winforms\Managed\System\WinForms\ToolStripProgressBar.cs (3)
104
if (this.
Owner
!= null && this.
Owner
is StatusStrip) {
552
return toolStripProgressBarControl.Owner.
Owner
.AccessibilityObject;
winforms\Managed\System\WinForms\ToolStripSeparator.cs (4)
286
parent =
Owner
;
412
parent =
Owner
;
441
if (this.
Owner
!= null && this.ParentInternal != null) {
460
ToolStripDropDownMenu dropDownMenu = this.
Owner
as ToolStripDropDownMenu;
winforms\Managed\System\WinForms\ToolStripStatusLabel.cs (2)
147
LayoutTransaction.DoLayout(
Owner
,this, PropertyNames.BorderStyle);
234
if (this.
Owner
!= null) {
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
912
return toolStripTextBoxControl.Owner.
Owner
.AccessibilityObject;