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