371 references to AccessibilityObject
System.Windows.Forms (31)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
73
? host.
AccessibilityObject
.FragmentNavigate(direction)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (9)
31
return ((item is not null) && (item.
AccessibilityObject
is not null))
32
? item.
AccessibilityObject
49
return owner.Grip.
AccessibilityObject
;
105
return item.
AccessibilityObject
;
110
return owner.OverflowButton.
AccessibilityObject
;
165
return owner.OverflowButton.
AccessibilityObject
;
191
return item.
AccessibilityObject
;
228
return item.
AccessibilityObject
;
248
return item.
AccessibilityObject
;
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
189
AccessibilityObject
is ToolStripButtonAccessibleObject accessibilityObject)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxControlAccessibleObject.cs (1)
28
return owner.Owner?.
AccessibilityObject
.FragmentNavigate(direction);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.ToolStripHostedControlAccessibleObject.cs (1)
49
return _toolStripControlHost.
AccessibilityObject
.FragmentNavigate(direction);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.ToolStripDropDownAccessibleObject.cs (3)
32
&& owner.AccessibleName is { } name ? name : owner?.OwnerItem?.
AccessibilityObject
.Name;
50
&& (owner?.OwnerItem?.
AccessibilityObject
.CanGetNameInternal ?? true);
56
return owner?.OwnerItem?.
AccessibilityObject
.GetNameInternal() ?? default;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (2)
503
if (accessibilityIsOn &&
AccessibilityObject
is ToolStripItemAccessibleObject accessibleObject)
532
if (IsAccessibilityObjectCreated &&
AccessibilityObject
is ToolStripItemAccessibleObject accessibleObject)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (1)
203
return item.
AccessibilityObject
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObject.cs (1)
20
=> owner.OwnerItem?.
AccessibilityObject
,
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
3171
if (accessibilityIsOn &&
AccessibilityObject
is ToolStripItemAccessibleObject accessibleObject)
3543
Rectangle IKeyboardToolTip.GetNativeScreenRectangle() =>
AccessibilityObject
.Bounds;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
268
return nextItem?.
AccessibilityObject
;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.ToolStripOverflowAccessibleObject.cs (2)
18
? owner.DisplayedItems[index].
AccessibilityObject
32
=> owner.OwnerItem?.
AccessibilityObject
,
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.ToolStripProgressBarControlAccessibleObject.cs (1)
29
=> _ownerToolStripProgressBarControl.Owner?.
AccessibilityObject
.FragmentNavigate(direction),
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.StickyLabelAccessibleObject.cs (2)
32
? toolStripDropDownMenu.Items[0].
AccessibilityObject
36
? toolStripDropDownMenu.Items[^1].
AccessibilityObject
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObject.cs (2)
81
NavigateDirection.NavigateDirection_FirstChild => DropDownItemsCount > 0 ? _owningToolStripSplitButton.DropDown.Items[0].
AccessibilityObject
: null,
82
NavigateDirection.NavigateDirection_LastChild => DropDownItemsCount > 0 ? _owningToolStripSplitButton.DropDown.Items[_owningToolStripSplitButton.DropDown.Items.Count - 1].
AccessibilityObject
: null,
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
173
AccessibilityObject
.RaiseLiveRegionChanged();
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
945
if (ToolStripItem.
AccessibilityObject
is ToolStripItem.ToolStripItemAccessibleObject acc)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
173
if (curDesignerNode.
AccessibilityObject
is ToolStripItem.ToolStripItemAccessibleObject acc)
System.Windows.Forms.Tests (338)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (2)
1553
AccessibleObject expected = button.
AccessibilityObject
;
1589
AccessibleObject expected = label.
AccessibilityObject
;
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (23)
233
AccessibleObject expected = menuStrip.Items[0].
AccessibilityObject
;
307
AccessibleObject expected = menuStrip.OverflowButton.
AccessibilityObject
;
351
AccessibleObject expected = menuStrip.Items[0].
AccessibilityObject
;
367
AccessibleObject expected = menuStrip.Items[1].
AccessibilityObject
;
399
AccessibleObject expected = menuStrip.Items[1].
AccessibilityObject
;
415
AccessibleObject expected = menuStrip.Items[0].
AccessibilityObject
;
433
AccessibleObject expected = menuStrip.Items[2].
AccessibilityObject
;
451
AccessibleObject expected = menuStrip.Items[1].
AccessibilityObject
;
468
AccessibleObject expected = menuStrip.Items[1].
AccessibilityObject
;
485
AccessibleObject expected = menuStrip.Items[0].
AccessibilityObject
;
542
AccessibleObject expected = menuStrip.Items[1].
AccessibilityObject
;
581
AccessibleObject expected = menuStrip.Items[0].
AccessibilityObject
;
630
AccessibleObject expected = menuStrip.Items[0].
AccessibilityObject
;
646
AccessibleObject expected = menuStrip.Items[1].
AccessibilityObject
;
668
AccessibleObject expected = menuStrip.Items[1].
AccessibilityObject
;
690
AccessibleObject expected = menuStrip.Items[2].
AccessibilityObject
;
707
AccessibleObject expected = menuStrip.Items[0].
AccessibilityObject
;
724
AccessibleObject expected = menuStrip.Items[1].
AccessibilityObject
;
750
AccessibleObject expected = menuStrip.OverflowButton.
AccessibilityObject
;
789
AccessibleObject expected = menuStrip.Items[0].
AccessibilityObject
;
832
AccessibleObject expected = menuStrip.Items[0].
AccessibilityObject
;
866
AccessibleObject expected = menuStrip.Items[0].
AccessibilityObject
;
891
AccessibleObject expected = menuStrip.Items[1].
AccessibilityObject
;
System\Windows\Forms\AccessibleObjects\PropertyGridToolStripButton.PropertyGridToolStripButtonAccessibleObjectTests.cs (18)
16
AccessibleObject categoryButtonAccessibleObject = toolStripButtons[0].
AccessibilityObject
;
17
AccessibleObject alphaButtonAccessibleObject = toolStripButtons[1].
AccessibilityObject
;
33
AccessibleObject accessibleObject = toolStripButtons[0].
AccessibilityObject
;
44
AccessibleObject categoryButtonAccessibleObject = toolStripButtons[0].
AccessibilityObject
;
45
AccessibleObject alphaButtonAccessibleObject = toolStripButtons[1].
AccessibilityObject
;
46
AccessibleObject propertyPagesButtonAccessibleObject = propertyPagesButton.
AccessibilityObject
;
61
AccessibleObject accessibleObject = toolStripButtons[0].
AccessibilityObject
;
76
AccessibleObject alphaButtonAccessibleObject = alphaButton.
AccessibilityObject
;
77
AccessibleObject categoryButtonAccessibleObject = categoryButton.
AccessibilityObject
;
104
AccessibleObject alphaButtonAccessibleObject = alphaButton.
AccessibilityObject
;
105
AccessibleObject categoryButtonAccessibleObject = categoryButton.
AccessibilityObject
;
132
AccessibleObject alphaButtonAccessibleObject = alphaButton.
AccessibilityObject
;
133
AccessibleObject categoryButtonAccessibleObject = categoryButton.
AccessibilityObject
;
154
AccessibleObject alphaButtonAccessibleObject = alphaButton.
AccessibilityObject
;
155
AccessibleObject categoryButtonAccessibleObject = categoryButton.
AccessibilityObject
;
180
AccessibleObject categoryButtonAccessibleObject = toolStripButtons[0].
AccessibilityObject
;
181
AccessibleObject alphaButtonAccessibleObject = toolStripButtons[1].
AccessibilityObject
;
182
AccessibleObject propertyPagesButtonAccessibleObject = propertyPagesButton.
AccessibilityObject
;
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (23)
213
AccessibleObject expected = statusStrip.Items[0].
AccessibilityObject
;
287
AccessibleObject expected = statusStrip.OverflowButton.
AccessibilityObject
;
331
AccessibleObject expected = statusStrip.Items[0].
AccessibilityObject
;
347
AccessibleObject expected = statusStrip.Items[1].
AccessibilityObject
;
379
AccessibleObject expected = statusStrip.Items[1].
AccessibilityObject
;
395
AccessibleObject expected = statusStrip.Items[0].
AccessibilityObject
;
413
AccessibleObject expected = statusStrip.Items[2].
AccessibilityObject
;
431
AccessibleObject expected = statusStrip.Items[1].
AccessibilityObject
;
448
AccessibleObject expected = statusStrip.Items[1].
AccessibilityObject
;
465
AccessibleObject expected = statusStrip.Items[0].
AccessibilityObject
;
522
AccessibleObject expected = statusStrip.Items[1].
AccessibilityObject
;
561
AccessibleObject expected = statusStrip.Items[0].
AccessibilityObject
;
610
AccessibleObject expected = statusStrip.Items[0].
AccessibilityObject
;
626
AccessibleObject expected = statusStrip.Items[1].
AccessibilityObject
;
648
AccessibleObject expected = statusStrip.Items[1].
AccessibilityObject
;
670
AccessibleObject expected = statusStrip.Items[2].
AccessibilityObject
;
687
AccessibleObject expected = statusStrip.Items[0].
AccessibilityObject
;
704
AccessibleObject expected = statusStrip.Items[1].
AccessibilityObject
;
730
AccessibleObject expected = statusStrip.OverflowButton.
AccessibilityObject
;
769
AccessibleObject expected = statusStrip.Items[0].
AccessibilityObject
;
812
AccessibleObject expected = statusStrip.Items[0].
AccessibilityObject
;
846
AccessibleObject expected = statusStrip.Items[0].
AccessibilityObject
;
872
AccessibleObject expected = statusStrip.Items[1].
AccessibilityObject
;
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (23)
226
AccessibleObject expected = toolStrip.Items[0].
AccessibilityObject
;
300
AccessibleObject expected = toolStrip.OverflowButton.
AccessibilityObject
;
344
AccessibleObject expected = toolStrip.Items[0].
AccessibilityObject
;
360
AccessibleObject expected = toolStrip.Items[1].
AccessibilityObject
;
392
AccessibleObject expected = toolStrip.Items[1].
AccessibilityObject
;
408
AccessibleObject expected = toolStrip.Items[0].
AccessibilityObject
;
426
AccessibleObject expected = toolStrip.Items[2].
AccessibilityObject
;
444
AccessibleObject expected = toolStrip.Items[1].
AccessibilityObject
;
461
AccessibleObject expected = toolStrip.Items[1].
AccessibilityObject
;
478
AccessibleObject expected = toolStrip.Items[0].
AccessibilityObject
;
535
AccessibleObject expected = toolStrip.Items[1].
AccessibilityObject
;
574
AccessibleObject expected = toolStrip.Items[0].
AccessibilityObject
;
623
AccessibleObject expected = toolStrip.Items[0].
AccessibilityObject
;
639
AccessibleObject expected = toolStrip.Items[1].
AccessibilityObject
;
661
AccessibleObject expected = toolStrip.Items[1].
AccessibilityObject
;
683
AccessibleObject expected = toolStrip.Items[2].
AccessibilityObject
;
700
AccessibleObject expected = toolStrip.Items[0].
AccessibilityObject
;
717
AccessibleObject expected = toolStrip.Items[1].
AccessibilityObject
;
743
AccessibleObject expected = toolStrip.OverflowButton.
AccessibilityObject
;
782
AccessibleObject expected = toolStrip.Items[0].
AccessibilityObject
;
825
AccessibleObject expected = toolStrip.Items[0].
AccessibilityObject
;
859
AccessibleObject expected = toolStrip.Items[0].
AccessibilityObject
;
884
AccessibleObject expected = toolStrip.Items[1].
AccessibilityObject
;
System\Windows\Forms\AccessibleObjects\ToolStripButton.ToolStripButtonAccessibleObjectTests.cs (17)
26
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripButton.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
37
AccessibleRole actual = toolStripButton.
AccessibilityObject
.Role;
50
AccessibleRole actual = toolStripButton.
AccessibilityObject
.Role;
63
AccessibleRole actual = toolStripButton.
AccessibilityObject
.Role;
90
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripButton.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
104
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripButton.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
118
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripButton.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
139
object actual = toolStripButton.
AccessibilityObject
.IsPatternSupported(UIA_PATTERN_ID.UIA_TogglePatternId);
152
object actual = toolStripButton.
AccessibilityObject
.IsPatternSupported(UIA_PATTERN_ID.UIA_TogglePatternId);
168
object actual = toolStripButton.
AccessibilityObject
.ToggleState;
185
Assert.Equal(ToggleState.ToggleState_Off, toolStripButton.
AccessibilityObject
.ToggleState);
187
toolStripButton.
AccessibilityObject
.Toggle();
189
Assert.Equal(ToggleState.ToggleState_On, toolStripButton.
AccessibilityObject
.ToggleState);
191
toolStripButton.
AccessibilityObject
.Toggle();
193
Assert.Equal(ToggleState.ToggleState_Off, toolStripButton.
AccessibilityObject
.ToggleState);
203
Assert.False(toolStripButton.
AccessibilityObject
.IsPatternSupported(UIA_PATTERN_ID.UIA_TogglePatternId));
206
toolStripButton.
AccessibilityObject
.Toggle();
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxAccessibleObjectTests.cs (1)
17
_ = toolStripComboBox.
AccessibilityObject
;
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxControlAccessibleObjectTests.cs (2)
32
AccessibleObject accessibleObject = toolStripComboBox.
AccessibilityObject
;
64
AccessibleObject accessibleObject = toolStripComboBox.
AccessibilityObject
;
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (5)
22
var accessibleObject = (ToolStripControlHostAccessibleObject)toolStrip.
AccessibilityObject
;
34
var accessibleObject = (ToolStripControlHostAccessibleObject)toolStrip.
AccessibilityObject
;
46
var accessibleObject = (ToolStripControlHostAccessibleObject)toolStrip.
AccessibilityObject
;
59
var accessibleObject = (ToolStripControlHostAccessibleObject)toolStrip.
AccessibilityObject
;
76
_ = toolStripControlHost.
AccessibilityObject
;
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripHostedControlAccessibleObjectTests.cs (1)
26
Assert.True(GetIsOffscreenPropertyValue(item.
AccessibilityObject
));
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (4)
27
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripDropDownButton.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
38
AccessibleRole actual = toolStripDropDownButton.
AccessibilityObject
.Role;
65
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripDropDownButton.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
84
AccessibleObject accessibleObject = toolStrip.Items[0].
AccessibilityObject
;
System\Windows\Forms\AccessibleObjects\ToolStripDropDownItemAccessibleObjectTests.cs (24)
20
var accessibleObject = (ToolStripDropDownItemAccessibleObject)control.
AccessibilityObject
;
31
var accessibleObject = (ToolStripDropDownItemAccessibleObject)control.
AccessibilityObject
;
42
var accessibleObject = (ToolStripDropDownItemAccessibleObject)control.
AccessibilityObject
;
51
var accessibleObject = (ToolStripDropDownItemAccessibleObject)control.
AccessibilityObject
;
62
var accessibleObject = (ToolStripDropDownItemAccessibleObject)control.
AccessibilityObject
;
73
var accessibleObject = (ToolStripDropDownItemAccessibleObject)control.
AccessibilityObject
;
83
var accessibleObject = (ToolStripDropDownItemAccessibleObject)control.
AccessibilityObject
;
99
var accessibleObject = (ToolStripDropDownItemAccessibleObject)control.
AccessibilityObject
;
108
var accessibleObject = (ToolStripDropDownItemAccessibleObject)control.
AccessibilityObject
;
122
var accessibleObject = (ToolStripDropDownItemAccessibleObject)control.
AccessibilityObject
;
125
Assert.Equal(item1.
AccessibilityObject
, accessibleObject.GetChild(0));
126
Assert.Equal(item2.
AccessibilityObject
, accessibleObject.GetChild(1));
140
var accessibleObjectItem1 = (ToolStripDropDownItemAccessibleObject)item1.
AccessibilityObject
;
141
var accessibleObjectItem2 = (ToolStripDropDownItemAccessibleObject)item2.
AccessibilityObject
;
142
var accessibleObjectNotItem = (ToolStripDropDownItemAccessibleObject)notItem.
AccessibilityObject
;
159
var accessibleObjectItem1 = (ToolStripDropDownItemAccessibleObject)item1.
AccessibilityObject
;
160
var accessibleObjectItem2 = (ToolStripDropDownItemAccessibleObject)item2.
AccessibilityObject
;
161
var accessibleObjectNotItem = (ToolStripDropDownItemAccessibleObject)notItem.
AccessibilityObject
;
178
var accessibleObject = (ToolStripDropDownItemAccessibleObject)control.
AccessibilityObject
;
195
var accessibleObject = (ToolStripDropDownItemAccessibleObject)control.
AccessibilityObject
;
196
var accessibleObjectItem1 = (ToolStripDropDownItemAccessibleObject)item1.
AccessibilityObject
;
197
var accessibleObjectItem2 = (ToolStripDropDownItemAccessibleObject)item2.
AccessibilityObject
;
198
var accessibleObjectNotItem = (ToolStripDropDownItemAccessibleObject)notItem.
AccessibilityObject
;
211
_ = toolStripDropDownItem.
AccessibilityObject
;
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (48)
38
Assert.Equal(item.
AccessibilityObject
, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
44
Assert.Null(item.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
45
Assert.Null(item.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
66
Assert.Equal(item.
AccessibilityObject
, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
72
Assert.Null(item.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
73
Assert.Null(item.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
127
Assert.Equal(ownerItem.
AccessibilityObject
, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
130
Assert.Equal(parentItem1.
AccessibilityObject
, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
131
Assert.Equal(parentItem2.
AccessibilityObject
, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
133
Assert.Equal(accessibleObject, ownerItem.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
134
Assert.Equal(accessibleObject, ownerItem.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
135
Assert.Equal(accessibleObject, parentItem1.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
136
Assert.Equal(accessibleObject, parentItem2.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
141
Assert.Equal(parentItem1.
AccessibilityObject
, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
144
Assert.Equal(childItem1.
AccessibilityObject
, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
145
Assert.Equal(childItem2.
AccessibilityObject
, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
147
Assert.Equal(accessibleObject1, parentItem1.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
148
Assert.Equal(accessibleObject1, parentItem1.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
149
Assert.Equal(accessibleObject1, childItem1.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
150
Assert.Equal(accessibleObject1, childItem2.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
155
Assert.Equal(parentItem2.
AccessibilityObject
, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
158
Assert.Equal(childItem3.
AccessibilityObject
, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
159
Assert.Equal(childItem4.
AccessibilityObject
, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
161
Assert.Equal(accessibleObject2, parentItem2.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
162
Assert.Equal(accessibleObject2, parentItem2.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
163
Assert.Equal(accessibleObject2, childItem3.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
164
Assert.Equal(accessibleObject2, childItem4.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
218
Assert.Equal(ownerItem.
AccessibilityObject
, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
221
Assert.Equal(parentItem1.
AccessibilityObject
, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
222
Assert.Equal(parentItem2.
AccessibilityObject
, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
224
Assert.Equal(accessibleObject, ownerItem.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
225
Assert.Equal(accessibleObject, ownerItem.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
226
Assert.Equal(accessibleObject, parentItem1.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
227
Assert.Equal(accessibleObject, parentItem2.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
232
Assert.Equal(parentItem1.
AccessibilityObject
, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
235
Assert.Equal(childItem1.
AccessibilityObject
, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
236
Assert.Equal(childItem2.
AccessibilityObject
, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
238
Assert.Equal(accessibleObject1, parentItem1.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
239
Assert.Equal(accessibleObject1, parentItem1.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
240
Assert.Equal(accessibleObject1, childItem1.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
241
Assert.Equal(accessibleObject1, childItem2.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
246
Assert.Equal(parentItem2.
AccessibilityObject
, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
249
Assert.Equal(childItem3.
AccessibilityObject
, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
250
Assert.Equal(childItem4.
AccessibilityObject
, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
252
Assert.Equal(accessibleObject2, parentItem2.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
253
Assert.Equal(accessibleObject2, parentItem2.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
254
Assert.Equal(accessibleObject2, childItem3.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
255
Assert.Equal(accessibleObject2, childItem4.
AccessibilityObject
.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
System\Windows\Forms\AccessibleObjects\ToolStripGrip.ToolStripGripAccessibleObjectTests.cs (3)
26
UIA_CONTROLTYPE_ID actual = (UIA_CONTROLTYPE_ID)(int)toolStripGrip.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
37
AccessibleRole actual = toolStripGrip.
AccessibilityObject
.Role;
64
UIA_CONTROLTYPE_ID actual = (UIA_CONTROLTYPE_ID)(int)toolStripGrip.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (21)
55
AccessibleObject toolStripItemAccessibleObject = item.
AccessibilityObject
;
68
AccessibleObject toolStripItemAccessibleObject = item.
AccessibilityObject
;
81
AccessibleObject toolStripItemAccessibleObject = item.
AccessibilityObject
;
93
AccessibleObject toolStripItemAccessibleObject = item.
AccessibilityObject
;
120
AccessibleObject toolStripItemAccessibleObject = item.
AccessibilityObject
;
135
UIA_CONTROLTYPE_ID actual = (UIA_CONTROLTYPE_ID)(int)toolStripItem.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
163
UIA_CONTROLTYPE_ID actual = (UIA_CONTROLTYPE_ID)(int)toolStripItem.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
176
Assert.False((bool)toolStripItem.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsExpandCollapsePatternAvailablePropertyId));
177
Assert.Equal(VARIANT.Empty, toolStripItem.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId));
185
AccessibleObject accessibleObject = toolStripItem.
AccessibilityObject
;
195
AccessibleObject accessibleObject = toolStripItem.
AccessibilityObject
;
208
AccessibleObject accessibleObject = toolStrip.Items[0].
AccessibilityObject
;
220
AccessibleObject accessibleObject = toolStrip.Items[0].
AccessibilityObject
;
232
AccessibleObject accessibleObject = toolStrip.Items[0].
AccessibilityObject
;
250
AccessibleObject item1 = toolStrip.Items[0].
AccessibilityObject
;
251
AccessibleObject item2 = toolStrip.Items[1].
AccessibilityObject
;
273
AccessibleObject accessibleObject = toolStrip.Items[0].
AccessibilityObject
;
293
AccessibleObject item1 = toolStrip.Items[0].
AccessibilityObject
;
294
AccessibleObject item2 = toolStrip.Items[1].
AccessibilityObject
;
328
AccessibleObject item2 = toolStrip.Items[1].
AccessibilityObject
;
329
AccessibleObject item4 = toolStrip.Items[3].
AccessibilityObject
;
System\Windows\Forms\AccessibleObjects\ToolStripLabel.ToolStripLabelAccessibleObjectTests.cs (5)
30
int actual = (int)toolStripLabel.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
44
AccessibleRole actual = toolStripLabel.
AccessibilityObject
.Role;
71
Assert.Equal(AccessibleRoleControlTypeMap.GetControlType(role), (UIA_CONTROLTYPE_ID)(int)toolStripLabel.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId));
72
Assert.Equal(VARIANT.Empty, toolStripLabel.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId));
81
var actual = (AccessibleStates)(int)toolStripLabel.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleStatePropertyId);
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (27)
32
Assert.True(item1.
AccessibilityObject
.IsPatternSupported(UIA_PATTERN_ID.UIA_InvokePatternId));
34
item1.
AccessibilityObject
.Invoke();
53
item1.
AccessibilityObject
.Invoke();
73
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripMenuItem.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
84
AccessibleRole actual = toolStripMenuItem.
AccessibilityObject
.Role;
111
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripMenuItem.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
122
AccessibleObject accessibilityObject = toolStripMenuItem.
AccessibilityObject
;
137
Assert.Equal(1, (int)item1.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_PositionInSetPropertyId));
144
Assert.Equal(1, (int)item1.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_PositionInSetPropertyId));
145
Assert.Equal(VARIANT.Empty, separator.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_PositionInSetPropertyId));
152
Assert.Equal(1, (int)item1.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_PositionInSetPropertyId));
153
Assert.Equal(VARIANT.Empty, separator.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_PositionInSetPropertyId));
154
Assert.Equal(2, (int)item2.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_PositionInSetPropertyId));
162
AccessibleObject accessibilityObject = toolStripMenuItem.
AccessibilityObject
;
177
Assert.Equal(1, (int)item1.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_SizeOfSetPropertyId));
184
Assert.Equal(1, (int)item1.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_SizeOfSetPropertyId));
185
Assert.Equal(VARIANT.Empty, separator.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_SizeOfSetPropertyId));
192
Assert.Equal(2, (int)item1.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_SizeOfSetPropertyId));
193
Assert.Equal(VARIANT.Empty, separator.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_SizeOfSetPropertyId));
194
Assert.Equal(2, (int)item2.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_SizeOfSetPropertyId));
212
object actual = toolStripMenuItem.
AccessibilityObject
.IsPatternSupported(UIA_PATTERN_ID.UIA_TogglePatternId);
228
object actual = toolStripMenuItem.
AccessibilityObject
.ToggleState;
245
Assert.Equal(ToggleState.ToggleState_Off, toolStripMenuItem.
AccessibilityObject
.ToggleState);
247
toolStripMenuItem.
AccessibilityObject
.Toggle();
249
Assert.Equal(ToggleState.ToggleState_On, toolStripMenuItem.
AccessibilityObject
.ToggleState);
251
toolStripMenuItem.
AccessibilityObject
.Toggle();
253
Assert.Equal(ToggleState.ToggleState_Off, toolStripMenuItem.
AccessibilityObject
.ToggleState);
System\Windows\Forms\AccessibleObjects\ToolStripNumericUpDown.ToolStripNumericUpDownAccessibleObjectTests.cs (2)
47
AccessibleRole actual = toolStripNumericUpDown.
AccessibilityObject
.Role;
75
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripNumericUpDown.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (6)
92
AccessibleObject expected = toolStripItem.
AccessibilityObject
;
105
AccessibleObject expected = toolStripItem.
AccessibilityObject
;
130
AccessibleObject expected = toolStrip.Items[0].
AccessibilityObject
;
147
AccessibleObject expected = toolStrip.Items[0].
AccessibilityObject
;
160
AccessibleObject expected = toolStrip.Items[4].
AccessibilityObject
;
177
AccessibleObject expected = toolStrip.Items[4].
AccessibilityObject
;
System\Windows\Forms\AccessibleObjects\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObjectTests.cs (6)
29
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripOverflowButton.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
42
AccessibleRole actual = toolStripOverflowButton.
AccessibilityObject
.Role;
73
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripOverflowButton.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
91
AccessibleObject accessibleObject = toolStrip.OverflowButton.
AccessibilityObject
;
116
AccessibleObject overflowButton = toolStrip.OverflowButton.
AccessibilityObject
;
117
AccessibleObject item1 = toolStrip.Items[0].
AccessibilityObject
;
System\Windows\Forms\AccessibleObjects\ToolStripProgressBar.ToolStripProgressBarControl.ToolStripProgressBarControlAccessibleObjectTests.cs (2)
133
Assert.Equal(button.
AccessibilityObject
, nextSibling);
134
Assert.Equal(label.
AccessibilityObject
, previousSibling);
System\Windows\Forms\AccessibleObjects\ToolStripScrollButton.ToolStripScrollButtonAccessibleObjectTests.cs (5)
56
AccessibleObject itemAccessibleObject1 = dropDownMenu.Items[0].
AccessibilityObject
;
57
AccessibleObject itemAccessibleObject2 = dropDownMenu.Items[1].
AccessibilityObject
;
58
AccessibleObject itemAccessibleObject3 = dropDownMenu.Items[2].
AccessibilityObject
;
117
AccessibleObject itemAccessibleObject1 = dropDownMenu.Items[0].
AccessibilityObject
;
118
AccessibleObject itemAccessibleObject2 = dropDownMenu.Items[1].
AccessibilityObject
;
System\Windows\Forms\AccessibleObjects\ToolStripSeparator.ToolStripSeparatorAccessibleObjectTests.cs (3)
26
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripSeparator.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
37
AccessibleRole actual = toolStripSeparator.
AccessibilityObject
.Role;
64
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripSeparator.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonAccessibleObjectTests.cs (3)
26
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripSplitButton.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
37
AccessibleRole actual = toolStripSplitButton.
AccessibilityObject
.Role;
64
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripSplitButton.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (4)
90
Assert.Equal(item1.
AccessibilityObject
, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
91
Assert.Equal(item2.
AccessibilityObject
, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
132
Assert.Equal(item1.
AccessibilityObject
, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
133
Assert.Equal(item2.
AccessibilityObject
, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));
System\Windows\Forms\AccessibleObjects\ToolStripStatusLabel.ToolStripStatusLabelAccessibleObjectTests.cs (3)
29
int actual = (int)toolStripStatusLabel.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
43
AccessibleRole actual = toolStripStatusLabel.
AccessibilityObject
.Role;
70
var actual = (UIA_CONTROLTYPE_ID)(int)toolStripStatusLabel.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\ToolStripTextBox.ToolStripTextBoxAccessibleObjectTests.cs (4)
19
AccessibleObject toolStripTextBoxAccessibleObject = toolStripTextBox.
AccessibilityObject
;
29
AccessibleObject toolStripTextBoxAccessibleObject = toolStripTextBox.
AccessibilityObject
;
44
AccessibleObject toolStripTextBoxAccessibleObject = toolStripTextBox.
AccessibilityObject
;
58
AccessibleObject toolStripTextBoxAccessibleObject = toolStripTextBox.
AccessibilityObject
;
System\Windows\Forms\AccessibleObjects\ToolStripTextBox.ToolStripTextBoxControlAccessibleObjectTests.cs (3)
83
int actual = (int)toolStripTextBox.
AccessibilityObject
.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
103
object actual = toolStripTextBox.
AccessibilityObject
.Role;
132
AccessibleObject accessibleObject = toolStripTextBox.
AccessibilityObject
;
System\Windows\Forms\PropertyGridToolStripButtonTests.cs (2)
14
Assert.IsType<PropertyGridToolStripButton.PropertyGridToolStripButtonAccessibleObject>(toolStripButtons[0].
AccessibilityObject
);
15
Assert.IsType<PropertyGridToolStripButton.PropertyGridToolStripButtonAccessibleObject>(toolStripButtons[1].
AccessibilityObject
);
System\Windows\Forms\ToolStripButtonTests.cs (19)
18
Assert.NotNull(item.
AccessibilityObject
);
19
Assert.Same(item.
AccessibilityObject
, item.
AccessibilityObject
);
99
Assert.NotNull(item.
AccessibilityObject
);
100
Assert.Same(item.
AccessibilityObject
, item.
AccessibilityObject
);
186
Assert.NotNull(item.
AccessibilityObject
);
187
Assert.Same(item.
AccessibilityObject
, item.
AccessibilityObject
);
276
Assert.NotNull(item.
AccessibilityObject
);
277
Assert.Same(item.
AccessibilityObject
, item.
AccessibilityObject
);
366
Assert.NotNull(item.
AccessibilityObject
);
464
Assert.NotNull(item.
AccessibilityObject
);
1007
Assert.NotSame(accessibleObject, item.
AccessibilityObject
);
1021
Assert.NotSame(accessibleObject, item.
AccessibilityObject
);
1035
Assert.NotSame(accessibleObject, item.
AccessibilityObject
);
1054
Assert.NotSame(accessibleObject, item.
AccessibilityObject
);
1073
Assert.NotSame(accessibleObject, item.
AccessibilityObject
);
System\Windows\Forms\ToolStripControlHostTests.cs (6)
48
Assert.NotNull(item.
AccessibilityObject
);
49
Assert.Same(item.
AccessibilityObject
, item.
AccessibilityObject
);
2524
Assert.NotSame(accessibleObject, item.
AccessibilityObject
);
2542
Assert.NotSame(accessibleObject, item.
AccessibilityObject
);
2557
Assert.NotSame(accessibleObject, item.
AccessibilityObject
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (6)
17
Assert.NotNull(item.
AccessibilityObject
);
18
Assert.Same(item.
AccessibilityObject
, item.
AccessibilityObject
);
108
Assert.NotNull(item.
AccessibilityObject
);
207
Assert.NotNull(item.
AccessibilityObject
);
307
Assert.NotNull(item.
AccessibilityObject
);
System\Windows\Forms\ToolStripItemTests.cs (9)
20
Assert.NotNull(item.
AccessibilityObject
);
21
Assert.Same(item.
AccessibilityObject
, item.
AccessibilityObject
);
107
Assert.NotNull(item.
AccessibilityObject
);
202
Assert.NotNull(item.
AccessibilityObject
);
297
Assert.Same(result, item.
AccessibilityObject
);
298
Assert.Same(item.
AccessibilityObject
, item.
AccessibilityObject
);
9841
Assert.NotSame(accessibleObject, item.
AccessibilityObject
);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
18
Assert.NotNull(item.
AccessibilityObject
);
19
Assert.Same(item.
AccessibilityObject
, item.
AccessibilityObject
);
System\Windows\Forms\ToolStripSeparatorTests.cs (5)
18
Assert.NotNull(item.
AccessibilityObject
);
19
Assert.Same(item.
AccessibilityObject
, item.
AccessibilityObject
);
727
Assert.NotSame(accessibleObject, item.
AccessibilityObject
);
740
Assert.NotSame(accessibleObject, item.
AccessibilityObject
);