45 references to Owner
System.Windows.Forms (45)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (9)
286if (child.Owner == owner.Grip) 292ToolStripItemPlacement placement = child.Owner.Placement; 301if (owner.CanOverflow && owner.OverflowButton.Visible && child.Owner == owner.OverflowButton) 307items = placement == ToolStripItemPlacement.Main || child.Owner is ToolStripScrollButton 315if (item.Available && child.Owner == item) 334if (child.Owner == owner.Grip) 342if (owner.CanOverflow && owner.OverflowButton.Visible && child.Owner == owner.OverflowButton) 352if (child.Owner == owner.Items[i]) 366if (child.Owner == owner.Items[i])
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (3)
23AccessibleRole role = Owner.AccessibleRole; 35if (Owner is ToolStripDropDownItem item && item.HasDropDownItems) 132if (_owner.DropDownItems[i].Available && child.Owner == _owner.DropDownItems[i])
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.ToolStripGripAccessibleObject.cs (2)
18public override string Name => Owner.AccessibleName ?? SR.ToolStripGripAccessibleName; 26AccessibleRole role = Owner.AccessibleRole;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (28)
55QueryAccessibilityHelpEventHandler? handler = (QueryAccessibilityHelpEventHandler?)Owner.Events[s_queryAccessibilityHelpEvent]; 59handler(Owner, args); 68=> IsInternal && (QueryAccessibilityHelpEventHandler?)Owner.Events[s_queryAccessibilityHelpEvent] is null; 203Owner?.PerformClick(); 210QueryAccessibilityHelpEventHandler? handler = (QueryAccessibilityHelpEventHandler?)Owner.Events[s_queryAccessibilityHelpEvent]; 215handler(Owner, args); 227internal override bool CanGetHelpTopicInternal => IsInternal && Owner.Events[s_queryAccessibilityHelpEvent] is null; 233if (Owner is not null) 235ToolStrip? parent = Owner.ParentInternal; 251nextItem = parent.GetNextItem(Owner, ArrowDirection.Left, /*RTLAware=*/true); 255nextItem = parent.GetNextItem(Owner, ArrowDirection.Right, /*RTLAware=*/true); 258nextItem = (Owner.IsOnDropDown) ? parent.GetNextItem(Owner, ArrowDirection.Up) : 259parent.GetNextItem(Owner, ArrowDirection.Left, /*RTLAware=*/true); 262nextItem = (Owner.IsOnDropDown) ? parent.GetNextItem(Owner, ArrowDirection.Down) : 263parent.GetNextItem(Owner, ArrowDirection.Right, /*RTLAware=*/true); 285if (Owner is not null) 287return $"ToolStripItemAccessibleObject: Owner = {Owner}"; 300Rectangle bounds = Owner.Bounds; 302if (Owner.ParentInternal is not null && Owner.ParentInternal.Visible) 304return new Rectangle(Owner.ParentInternal.PointToScreen(bounds.Location), bounds.Size); 318if (Owner.IsOnDropDown) 321ToolStripDropDown dropDown = Owner.GetCurrentParentDropDown()!; 325return (Owner.Parent is not null) ? Owner.Parent.AccessibilityObject : base.Parent; 443internal override void SetFocus() => Owner.Select();
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.ToolStripLabelAccessibleObject.cs (1)
35AccessibleRole role = Owner.AccessibleRole;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemAccessibleObject.cs (1)
119Owner.AccessibleDefaultActionDescription
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObject.cs (1)
20public override string Name => Owner.AccessibleName ?? SR.ToolStripOptions;