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