1687 references to AccessibilityObject
Accessibility_Core_App (1)
DataControls.cs (1)
46bindingNavigator1.AccessibilityObject.RaiseAutomationNotification(
System.Windows.Forms (259)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
554Owner?.ToolStripControlHost?.Owner?.AccessibilityObject;
System\Windows\Forms\ContextMenuStrip.cs (2)
151AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_MenuOpenedEventId); 166AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_MenuClosedEventId);
System\Windows\Forms\Control.cs (3)
465this is IAutomationLiveRegion ? AccessibilityObject : null; 11177AccessibilityObject); 11186OBJECT_IDENTIFIER.OBJID_CLIENT => AccessibilityObject,
System\Windows\Forms\Controls\Buttons\Button.cs (2)
205AccessibilityObject.RaiseAutomationPropertyChangedEvent(UIA_PROPERTY_ID.UIA_NamePropertyId, nameVariant, nameVariant); 206AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationPropertyChangedEventId);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1111AccessibilityObject.RaiseAutomationPropertyChangedEvent(UIA_PROPERTY_ID.UIA_NamePropertyId, textVariant, textVariant);
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
423AccessibilityObject.RaiseAutomationPropertyChangedEvent(UIA_PROPERTY_ID.UIA_NamePropertyId, nameVariant, nameVariant); 424AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationPropertyChangedEventId);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
349AccessibilityObject.RaiseAutomationPropertyChangedEvent(UIA_PROPERTY_ID.UIA_NamePropertyId, nameVariant, nameVariant); 350AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationPropertyChangedEventId);
System\Windows\Forms\Controls\ComboBox\ComboBox.ChildAccessibleObject.cs (3)
24public override string? Name => _owner.AccessibilityObject.Name; 26internal override BSTR GetNameInternal() => _owner.AccessibilityObject.GetNameInternal(); 28internal override bool CanGetNameInternal => _owner.AccessibilityObject.CanGetNameInternal;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (2)
61NavigateDirection.NavigateDirection_Parent => _owner.AccessibilityObject, 72internal override IRawElementProviderFragmentRoot.Interface FragmentRoot => _owner.AccessibilityObject;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildEditUiaProvider.cs (3)
50NavigateDirection.NavigateDirection_Parent => _owningComboBox.AccessibilityObject, 57&& _owningComboBox.AccessibilityObject is ComboBoxAccessibleObject comboBoxAccessibleObject 64internal override IRawElementProviderFragmentRoot.Interface FragmentRoot => _owningComboBox.AccessibilityObject;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (3)
74return _owningComboBox.AccessibilityObject; 99internal override IRawElementProviderFragmentRoot.Interface FragmentRoot => _owningComboBox.AccessibilityObject; 108if (_owningComboBox.AccessibilityObject is not ComboBoxAccessibleObject comboBoxAccessibleObject)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildNativeWindow.cs (1)
44&& _owner.AccessibilityObject is ComboBoxAccessibleObject comboBoxAccessibleObject)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (6)
38return _owner.AccessibilityObject.Bounds; 57get => _owner.AccessibilityObject.Name ?? string.Empty; 72BSTR name = _owner.AccessibilityObject.GetNameInternal(); 85NavigateDirection.NavigateDirection_Parent => _owner.AccessibilityObject, 87=> _owner.AccessibilityObject is ComboBoxAccessibleObject comboBoxAccessibleObject 98internal override IRawElementProviderFragmentRoot.Interface FragmentRoot => _owner.AccessibilityObject;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
104internal override IRawElementProviderFragmentRoot.Interface FragmentRoot => _owningComboBox.AccessibilityObject;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (6)
2423AccessibilityObject.RaiseAutomationPropertyChangedEvent( 2428if (AccessibilityObject is ComboBoxAccessibleObject accessibleObject) 2595if (AccessibilityObject is ComboBoxAccessibleObject accessibleObject 2884AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationFocusChangedEventId); 2906AccessibilityObject.RaiseAutomationPropertyChangedEvent( 3075if (AccessibilityObject is ComboBoxAccessibleObject accessibilityObject)
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
39if (_owner.AccessibilityObject is ComboBoxAccessibleObject accessibleObject)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (4)
93return owner._horizScrollBar.AccessibilityObject; 105return owner._vertScrollBar.AccessibilityObject; 184return owner.VerticalScrollBar.AccessibilityObject; 186return owner.HorizontalScrollBar.AccessibilityObject;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2224internal AccessibleObject? EditingControlAccessibleObject => EditingControl?.AccessibilityObject;
System\Windows\Forms\Controls\DataGridView\DataGridView.DataGridViewEditingPanelAccessibleObject.cs (5)
24=> this.TryGetOwnerAs(out Panel? owner) ? owner.AccessibilityObject.Bounds : default; 28? owner.AccessibilityObject 32? owner.AccessibilityObject.RuntimeId 48return owner.AccessibilityObject; 77UIA_PROPERTY_ID.UIA_AccessKeyPropertyId => this.TryGetOwnerAs(out Panel? owner) && owner.AccessibilityObject.KeyboardShortcut is { } shortcut
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
85AccessibilityObject.InternalRaiseAutomationNotification( 6805return AccessibilityObject.GetChild(objectId - 1); 25637if (AccessibilityObject is DataGridViewAccessibleObject accessibleObject)
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (4)
75return _ownerDataGridView.AccessibilityObject; 164if (_ownerDataGridView.AccessibilityObject.GetChildCount() > 1) 166return _ownerDataGridView.AccessibilityObject.GetChild(1); 192: (IRawElementProviderFragmentRoot.Interface)_ownerDataGridView.AccessibilityObject;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (4)
404return _owner.DataGridView.EditingControl.AccessibilityObject; 637internal override IRawElementProviderFragmentRoot.Interface? FragmentRoot => _owner?.DataGridView?.AccessibilityObject; 689=> (VARIANT)ComHelpers.GetComPointer<IUnknown>(_owner?.DataGridView?.AccessibilityObject), 747internal override IRawElementProviderSimple.Interface? ContainingGrid => _owner?.DataGridView?.AccessibilityObject;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
986if (DataGridView.IsAccessibilityObjectCreated && DataGridView.AccessibilityObject is Control.ControlAccessibleObject accessibleObject)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (1)
68: Owner.DataGridView?.AccessibilityObject.GetChild(0);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.DataGridViewComboBoxEditingControlAccessibleObject.cs (1)
51? owner.EditingControlDataGridView?.AccessibilityObject
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (3)
133return _owningDataGridViewRow.DataGridView?.AccessibilityObject; 347: _owningDataGridViewRow.DataGridView.AccessibilityObject.GetChild(visibleIndex + 1); 358return _owningDataGridViewRow.DataGridView.AccessibilityObject.GetChild(VisibleIndex - 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (4)
169return Owner.DataGridView.AccessibilityObject.GetChild(actualDisplayIndex)?.GetChild(0); 182Debug.Assert(Owner.DataGridView.TopLeftHeaderCell.AccessibilityObject == Owner.DataGridView.AccessibilityObject.GetChild(0)!.GetChild(0)); 183return Owner.DataGridView.AccessibilityObject.GetChild(0)?.GetChild(0); 195return Owner.DataGridView.AccessibilityObject.GetChild(actualDisplayIndex)?.GetChild(0);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObject.cs (1)
57? owner.EditingControlDataGridView?.AccessibilityObject
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (2)
258return Owner.DataGridView.AccessibilityObject.GetChild(0)?.GetChild(1); 279return dataGridView.AccessibilityObject.GetChild(0);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (5)
1055AccessibilityObject.RaiseAutomationPropertyChangedEvent( 1073AccessibilityObject.RaiseAutomationPropertyChangedEvent( 1096AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationFocusChangedEventId); 1149string? value = AccessibilityObject.Value; 1151AccessibilityObject.RaiseAutomationPropertyChangedEvent(
System\Windows\Forms\Controls\Labels\Label.cs (2)
1228AccessibilityObject.RaiseLiveRegionChanged(); 1232AccessibilityObject.RaiseAutomationPropertyChangedEvent(UIA_PROPERTY_ID.UIA_NamePropertyId, textVariant, textVariant);
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
24_linkLabelAccessibleObject = (LinkLabelAccessibleObject)_owningLinkLabel.AccessibilityObject;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
799AccessibleObject? checkedItem = AccessibilityObject.GetChild(ice.Index);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (9)
1313if (IsAccessibilityObjectCreated && AccessibilityObject is ListBoxAccessibleObject accessibilityObject) 1396if (_focusedItem == AccessibilityObject.GetFocused()) 1401_focusedItem = AccessibilityObject.GetFocused(); 1710AccessibleObject? item = AccessibilityObject.GetFocused(); 1718AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationFocusChangedEventId); 1873var focused = AccessibilityObject.GetFocused(); 1874if (focused == AccessibilityObject.GetSelected()) 1883AccessibilityObject?.GetChild(Items.Count - 1)?.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationFocusChangedEventId); 2047if (IsAccessibilityObjectCreated && AccessibilityObject is ListBoxAccessibleObject accessibilityObject)
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
138return _owningListBox.AccessibilityObject;
System\Windows\Forms\Controls\ListView\ListView.cs (4)
2202AccessibilityObject.InternalRaiseAutomationNotification( 4419AccessibilityObject.InternalRaiseAutomationNotification( 4715AccessibilityObject.GetFocus() is AccessibleObject focusedAccessibleObject) 5931AccessibleObject? accessibilityObject = AccessibilityObject.HitTest(screenPoint.X, screenPoint.Y);
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (4)
30_owningListViewAccessibilityObject = _owningListView.AccessibilityObject as ListViewAccessibleObject 31?? throw new InvalidOperationException(nameof(_owningListView.AccessibilityObject)); 68Rectangle listViewBounds = _owningListView.AccessibilityObject.Bounds; 99internal override IRawElementProviderFragmentRoot.Interface FragmentRoot => _owningListView.AccessibilityObject;
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (2)
70bool IKeyboardToolTip.IsHoveredWithMouse() => _listView?.AccessibilityObject.Bounds.Contains(Control.MousePosition) ?? false; 96Rectangle listviewBounds = _listView.AccessibilityObject.Bounds;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (8)
43_owningListView.AccessibilityObject.Bounds.X + _owningItem.Bounds.X, 44_owningListView.AccessibilityObject.Bounds.Y + _owningItem.Bounds.Y, 53internal override IRawElementProviderFragmentRoot.Interface FragmentRoot => _owningListView.AccessibilityObject; 91return state |= _owningListView.AccessibilityObject.SystemIAccessible.TryGetState(GetChildId()); 130AccessibleObject parentInternal = OwningGroup?.AccessibilityObject ?? _owningListView.AccessibilityObject; 206int[] id = _owningListView.AccessibilityObject.RuntimeId; 262=> _owningListView.AccessibilityObject; 291_owningListView.AccessibilityObject.SystemIAccessible.TrySelect(flags, GetChildId());
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemImageAccessibleObject.cs (1)
34internal override IRawElementProviderFragmentRoot.Interface? FragmentRoot => _owningItem.ListView?.AccessibilityObject;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemListAccessibleObject.cs (3)
21_owningListView.AccessibilityObject.Bounds.X + _owningItem.Bounds.X, 22_owningListView.AccessibilityObject.Bounds.Y + _owningItem.Bounds.Y, 30AccessibleObject _parentInternal = _owningListView.AccessibilityObject;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (4)
30internal override IRawElementProviderFragmentRoot.Interface FragmentRoot => _owningListView.AccessibilityObject; 64_owningListView.AccessibilityObject.Bounds.X + bounds.X, 65_owningListView.AccessibilityObject.Bounds.Y + bounds.Y, 137=> _owningListView.AccessibilityObject;
System\Windows\Forms\Controls\ListView\ListViewLabelEditAccessibleObject.cs (1)
64? target.AccessibilityObject
System\Windows\Forms\Controls\Menus\MenuStrip.cs (4)
171AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_MenuModeStartEventId); 172AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_MenuOpenedEventId); 189AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_MenuClosedEventId); 190AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_MenuModeEndEventId);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (3)
1432((MonthCalendarAccessibleObject)AccessibilityObject).FocusedCell?.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationFocusChangedEventId); 1486(AccessibilityObject as MonthCalendarAccessibleObject)?.DisconnectChildren(); 2089MonthCalendarAccessibleObject calendarAccessibleObject = (MonthCalendarAccessibleObject)AccessibilityObject;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
620internal AccessibleObject HelpPaneAccessibleObject => _helpPane.AccessibilityObject; 682internal AccessibleObject CommandsPaneAccessibleObject => _commandsPane.AccessibilityObject; 687internal AccessibleObject GridViewAccessibleObject => _gridView.AccessibilityObject;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyGridAccessibleObject.cs (1)
35return element.AccessibilityObject;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.CommandsPaneAccessibleObject.cs (2)
31&& target.AccessibilityObject is PropertyGrid.PropertyGridAccessibleObject propertyGridAccessibleObject) 53? target.AccessibilityObject.Name
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAccessibleObject.cs (1)
62=> _owningPropertyGrid?.AccessibilityObject;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
345var accessibleObject = (PropertyGridView.PropertyGridViewAccessibleObject)OwnerGridView.AccessibilityObject; 482var gridAccObj = (PropertyGridView.PropertyGridViewAccessibleObject)OwnerGridView.AccessibilityObject;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (2)
73this.TryGetOwnerAs(out GridEntry? owner) ? owner.OwnerGridView?.AccessibilityObject : null; 159internal override IRawElementProviderSimple.Interface? ContainingGrid => PropertyGridView?.AccessibilityObject;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.HelpPaneAccessibleObject.cs (2)
31&& target.AccessibilityObject is PropertyGrid.PropertyGridAccessibleObject propertyGridAccessibleObject) 63? string.Format(SR.PropertyGridHelpPaneAccessibleNameTemplate, target.AccessibilityObject.Name)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObject.cs (6)
42return propertyGridView.DropDownControlHolder.AccessibilityObject; 64return dropDownButton.AccessibilityObject; 74return dialogButton.AccessibilityObject; 178if (child == propertyGridView.DropDownControlHolder.AccessibilityObject) 200if (child == dropDownButton.AccessibilityObject) 210if (child == dialogButton.AccessibilityObject)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
304internal AccessibleObject EditAccessibleObject => EditTextBox.AccessibilityObject; 336=> DropDownListBox.Visible ? DropDownListBox.AccessibilityObject : null; 2173dropDownButton.AccessibilityObject.SetFocus(); 2420((ControlAccessibleObject)EditTextBox.AccessibilityObject).NotifyClients(AccessibleEvents.Focus); 2421EditTextBox.AccessibilityObject.SetFocus();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObject.cs (1)
49_owningDropDownHolder._gridView?.AccessibilityObject;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewListBoxAccessibleObject.cs (2)
43NavigateDirection.NavigateDirection_Parent => owner.OwningPropertyGridView.DropDownControlHolder.AccessibilityObject, 56? owner.OwningPropertyGridView.AccessibilityObject
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewListBoxItemAccessibleObject.cs (2)
17: base(owningGridViewListBox, owningItem, (ListBoxAccessibleObject)owningGridViewListBox.AccessibilityObject) 23internal override IRawElementProviderFragmentRoot.Interface FragmentRoot => _owningGridViewListBox.AccessibilityObject;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
134AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationFocusChangedEventId);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObject.cs (1)
63? owner.PropertyGridView.OwnerGrid?.AccessibilityObject
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (3)
39&& target.AccessibilityObject is PropertyGrid.PropertyGridAccessibleObject propertyGridAccessibleObject) 58? owner.OwnerGrid?.AccessibilityObject 94owner.OwnerGrid.AccessibilityObject.Name);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStrip.PropertyGridToolStripAccessibleObject.cs (4)
32&& target.AccessibilityObject is PropertyGrid.PropertyGridAccessibleObject propertyGridAccessibleObject) 61return target?.AccessibilityObject.Name; 70&& target.AccessibilityObject.CanGetNameInternal; 76return target is not null ? target.AccessibilityObject.GetNameInternal() : default;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.PropertyGridToolStripButtonAccessibleObject.cs (1)
54? _owningPropertyGridToolStripButton.Parent?.AccessibilityObject
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2408Parent.AccessibilityObject.InternalRaiseAutomationNotification(
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (4)
55? owner.SelectedTab?.AccessibilityObject 92&& owner.SelectedTab.AccessibilityObject.Bounds.Contains(point)) 94return owner.SelectedTab.AccessibilityObject; 120NavigateDirection.NavigateDirection_FirstChild => owner.SelectedTab?.AccessibilityObject,
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
208return selectedTab.AccessibilityObject.Bounds.Contains(MousePosition);
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (6)
61internal override IRawElementProviderFragmentRoot.Interface? FragmentRoot => OwningTabControl?.AccessibilityObject; 65internal override IRawElementProviderSimple.Interface? ItemSelectionContainer => OwningTabControl?.AccessibilityObject; 79=> OwningTabControl?.AccessibilityObject.SystemIAccessible; 100NavigateDirection.NavigateDirection_Parent => OwningTabControl.AccessibilityObject, 101NavigateDirection.NavigateDirection_NextSibling => OwningTabControl.AccessibilityObject.GetChild(GetChildId() + 1), 102NavigateDirection.NavigateDirection_PreviousSibling => OwningTabControl.AccessibilityObject.GetChild(GetChildId() - 1),
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (3)
21internal override IRawElementProviderFragmentRoot.Interface? FragmentRoot => OwningTabControl?.AccessibilityObject; 38return owningTabPage.Controls[index].AccessibilityObject; 55NavigateDirection.NavigateDirection_Parent => OwningTabControl?.AccessibilityObject,
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (3)
1810AccessibilityObject.SetFocus(); 2043AccessibilityObject?.RaiseAutomationEvent(UIA_EVENT_ID.UIA_Text_TextSelectionChangedEventId); 2088AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_Text_TextSelectionChangedEventId);
System\Windows\Forms\Controls\TextBox\TextBox.cs (3)
597AccessibilityObject.SetFocus(); 656AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_Text_TextSelectionChangedEventId); 670AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_Text_TextSelectionChangedEventId);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (3)
1529AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_Text_TextChangedEventId); 1531AccessibilityObject.RaiseAutomationPropertyChangedEvent(UIA_PROPERTY_ID.UIA_ValueValuePropertyId, textVariant, textVariant); 1736AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_Text_TextSelectionChangedEventId);
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (8)
49using var selection = ComHelpers.GetComScope<ITextRangeProvider>(new UiaTextRange(Owner.AccessibilityObject, this, start, end)); 73using var ranges = ComHelpers.GetComScope<ITextRangeProvider>(new UiaTextRange(Owner.AccessibilityObject, this, start, end)); 114Owner.AccessibilityObject, 136Owner.AccessibilityObject, 148Owner.AccessibilityObject, 171VARIANT hasKeyboardFocus = Owner.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId); 176Owner.AccessibilityObject, 195Owner.AccessibilityObject,
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxControlAccessibleObject.cs (1)
39? owner.Owner?.Owner?.AccessibilityObject
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
136internal AccessibleObject? ControlAccessibilityObject => _control?.AccessibilityObject;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.ToolStripControlHostAccessibleObject.cs (2)
74return _ownerItem.Control.AccessibilityObject; 82_ownerItem.RootToolStrip?.AccessibilityObject;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.ToolStripHostedControlAccessibleObject.cs (1)
36? _toolStripControlHost.Owner.AccessibilityObject
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (4)
97return _owner.DropDown.AccessibilityObject.GetChild(index); 120return _owner.DropDown.AccessibilityObject.GetChildCount(); 166if (_owner.DropDown.AccessibilityObject is ToolStrip.ToolStripAccessibleObject toolStripAccessibleObject) 212? _owner.DropDown.AccessibilityObject
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (3)
322return dropDown.AccessibilityObject; 325return (Owner.Parent is not null) ? Owner.Parent.AccessibilityObject : base.Parent; 330_ownerItem.RootToolStrip?.AccessibilityObject;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObject.cs (1)
29? _owningToolStripOverflowButton.DropDown.AccessibilityObject
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.ToolStripProgressBarControlAccessibleObject.cs (1)
21_ownerToolStripProgressBarControl.Owner?.Owner?.AccessibilityObject;
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (1)
38protected override AccessibleObject CreateAccessibilityInstance() => Control.AccessibilityObject;
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.StickyLabelAccessibleObject.cs (2)
29NavigateDirection.NavigateDirection_Parent => toolStripDropDownMenu.AccessibilityObject, 43_owner.OwnerScrollButton?.Owner?.AccessibilityObject;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (2)
985AccessibilityObject.RaiseAutomationPropertyChangedEvent(UIA_PROPERTY_ID.UIA_ValueValuePropertyId, nameVariant, nameVariant); 986AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationPropertyChangedEventId);
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarChildAccessibleObject.cs (1)
55? owner.AccessibilityObject as TrackBarAccessibleObject
System\Windows\Forms\Controls\TreeView\TreeNode.IKeyboardToolTip.cs (1)
45bool IKeyboardToolTip.IsHoveredWithMouse() => TreeView?.AccessibilityObject.Bounds.Contains(Control.MousePosition) ?? false;
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (4)
80internal override IRawElementProviderFragmentRoot.Interface FragmentRoot => _owningTreeView.AccessibilityObject; 86=> Parent ?? _owningTreeView.AccessibilityObject, 120public override AccessibleObject? HitTest(int x, int y) => _owningTreeView.AccessibilityObject.HitTest(x, y); 254=> _owningTreeView.AccessibilityObject;
System\Windows\Forms\Controls\TreeView\TreeViewLabelEditAccessibleObject.cs (1)
26? target.AccessibilityObject
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownBaseAccessibleObject.cs (2)
230 => owner.TextBox.AccessibilityObject.Parent, 251 => owner.UpDownButtonsInternal.AccessibilityObject.Parent,
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
346&& AccessibilityObject is UpDownButtonsAccessibleObject buttonsAccessibilityObject)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.cs (1)
86=> this.TryGetOwnerAs(out UpDownButtons? owner) ? owner.AccessibilityObject : null;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (5)
30AccessibilityObject.RaiseAutomationNotification(Automation.AutomationNotificationKind.ActionCompleted, 32AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_Text_TextChangedEventId); 57AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_Text_TextSelectionChangedEventId); 109AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_Text_TextSelectionChangedEventId); 120AccessibilityObject.SetFocus();
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.UpDownEditAccessibleObject.cs (7)
23get => _parent.AccessibilityObject.Name 29set => _parent.AccessibilityObject.Name = value; 34internal override bool CanSetNameInternal => _parent.AccessibilityObject.CanSetNameInternal; 36internal override void SetNameInternal(BSTR value) => _parent.AccessibilityObject.SetNameInternal(value); 38public override string? KeyboardShortcut => _parent.AccessibilityObject.KeyboardShortcut; 40internal override bool CanGetKeyboardShortcutInternal => _parent.AccessibilityObject.CanGetKeyboardShortcutInternal; 42internal override BSTR GetKeyboardShortcutInternal(VARIANT childID) => _parent.AccessibilityObject.GetKeyboardShortcutInternal(childID);
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (1)
795control.AccessibilityObject.RaiseAutomationNotification(
System\Windows\Forms\Form.cs (1)
4127AccessibilityObject.RaiseAutomationEvent(UIA_EVENT_ID.UIA_AutomationFocusChangedEventId);
System\Windows\Forms\Panels\Panel.PanelAccessibleObject.cs (1)
26: owner.Controls[index].AccessibilityObject;
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (2)
108_cancellingTextBox.AccessibilityObject?.RaiseAutomationEvent(UIA_EVENT_ID.UIA_Text_TextChangedEventId); 109_cancellingTextBox.AccessibilityObject?.RaiseAutomationPropertyChangedEvent(UIA_PROPERTY_ID.UIA_NamePropertyId, textVariant, textVariant);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
847&& AccessibilityObject is PrintPreviewControlAccessibleObject ao)
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (7)
490 => owner._vScrollBar.Visible ? owner._vScrollBar.AccessibilityObject 50: owner._hScrollBar.Visible ? owner._hScrollBar.AccessibilityObject : null, 521 => owner._vScrollBar.Visible && owner._hScrollBar.Visible ? owner._hScrollBar.AccessibilityObject : null, 81? owner._vScrollBar.AccessibilityObject 83? owner._hScrollBar.AccessibilityObject 87? owner._hScrollBar.AccessibilityObject 89? owner._vScrollBar.AccessibilityObject
System\Windows\Forms\Printing\PrintPreviewControl.ScrollBarAccessibleObject.cs (4)
18? printPreviewControl.AccessibilityObject 32NavigateDirection.NavigateDirection_Parent => printPreviewControl.AccessibilityObject, 37? printPreviewControl._hScrollBar.AccessibilityObject 43? printPreviewControl._vScrollBar.AccessibilityObject
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
372AccessibilityObject.RaiseAutomationPropertyChangedEvent(UIA_PROPERTY_ID.UIA_RangeValueValuePropertyId, (VARIANT)(double)oldValue, (VARIANT)(double)_value);
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (1)
63internal ScrollBarAccessibleObject ParentInternal => (ScrollBarAccessibleObject)OwningScrollBar.AccessibilityObject;
System\Windows\Forms\ToolTip\ToolTip.cs (1)
624tool.AccessibilityObject.InternalRaiseAutomationNotification(
System.Windows.Forms.Design (13)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (10)
24public override Rectangle Bounds => _control.AccessibilityObject.Bounds; 26public override string? Description => _control.AccessibilityObject.Description; 34public override AccessibleObject? Parent => _control.AccessibilityObject.Parent; 36public override AccessibleRole Role => _control.AccessibilityObject.Role; 44AccessibleStates state = _control.AccessibilityObject.State; 63public override string? Value => _control.AccessibilityObject.Value; 67if (_control.AccessibilityObject.GetChild(index) is Control.ControlAccessibleObject childAccObj) 76return _control.AccessibilityObject.GetChild(index); 79public override int GetChildCount() => _control.AccessibilityObject.GetChildCount(); 102public override AccessibleObject? HitTest(int x, int y) => _control.AccessibilityObject.HitTest(x, y);
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (2)
49_sampleDataGridView.AccessibilityObject.Name = SR.CellStyleBuilderNormalPreviewAccName; 59_sampleDataGridViewSelected.AccessibilityObject.Name = SR.CellStyleBuilderSelectedPreviewAccName;
System\Windows\Forms\Design\DesignerFrame.cs (1)
549AccessibleObject cao = c.AccessibilityObject;
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\AnchorEditorTests.cs (1)
91var actual = (UIA_CONTROLTYPE_ID)(int)item.AccessibilityObject.TestAccessor().Dynamic
System\Windows\Forms\Design\ContentAlignmentEditorTests.cs (1)
31var actual = (UIA_CONTROLTYPE_ID)(int)item.AccessibilityObject.TestAccessor().Dynamic
System.Windows.Forms.Tests (1397)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (3)
550AccessibleObject firstChild = form.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild); 576AccessibleObject target = form.AccessibilityObject.Navigate(direction); 596AccessibleObject target = form.AccessibilityObject.Navigate(direction);
System\Windows\Forms\AccessibleObjects\Button.ButtonAccessibleObjectTests.cs (1)
121var actual = (UIA_CONTROLTYPE_ID)(int)button.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (5)
93Assert.NotSame(control.AccessibilityObject, instance); 199AccessibleObject accessibleObject = buttonBase.AccessibilityObject; 229VARIANT actual = buttonBase.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 241using VARIANT actual = ownerControl.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AutomationIdPropertyId); 257var accessibilityObject = control.AccessibilityObject as ControlAccessibleObjectWithNotificationCounter;
System\Windows\Forms\AccessibleObjects\CategoryGridEntryAccessibleObjectTests.cs (4)
73Assert.Equal(gridView.AccessibilityObject, accessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 121var gridViewAccessibilityObject = (PropertyGridViewAccessibleObject)gridView.AccessibilityObject; 139var gridViewAccessibilityObject = (PropertyGridViewAccessibleObject)gridView.AccessibilityObject; 181var gridViewAccessibilityObject = (PropertyGridViewAccessibleObject)gridView.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (6)
48checkBox.AccessibilityObject.DefaultAction.Should().Be("TestActionDescription"); 58checkBox.AccessibilityObject.DefaultAction.Should().Be("Check"); 62checkBox.AccessibilityObject.DefaultAction.Should().Be("Uncheck"); 302Assert.Equal(expected, (UIA_CONTROLTYPE_ID)(int)checkBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId)); 303Assert.Equal(checkBox.AccessibilityObject.DefaultAction, ((BSTR)checkBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree());
System\Windows\Forms\AccessibleObjects\CheckedListBoxAccessibleObjectTests.cs (9)
27int listBoxHeight = checkedListBox.AccessibilityObject.Bounds.Height; 32AccessibleObject item = checkedListBox.AccessibilityObject.GetChild(i); 52VARIANT actual = checkedListBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 80VARIANT actual = checkedListBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 100AccessibleRole actual = checkedListBox.AccessibilityObject.Role; 118int actual = checkedListBox.AccessibilityObject.GetChildCount(); 129Assert.NotNull(checkedListBox.AccessibilityObject.RuntimeId); 137AccessibleObject accessibleObject = checkedListBox.AccessibilityObject; 153AccessibleObject accessibleObject = checkedListBox.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (30)
15var accessibleObject = (CheckedListBoxAccessibleObject)checkedListBox.AccessibilityObject; 25var accessibleObject = (CheckedListBoxAccessibleObject)checkedListBox.AccessibilityObject; 48Assert.Equal(testName, checkedListBox.AccessibilityObject.GetChild(0).Name); 58Assert.Equal(AccessibleRole.CheckButton, checkedListBox.AccessibilityObject.GetChild(0).Role); 71AccessibleObject accessibleObject = checkedListBox.AccessibilityObject; 90AccessibleObject itemAccessibleObject = checkedListBox.AccessibilityObject.GetChild(0); 102Assert.NotNull(checkedListBox.AccessibilityObject.GetChild(0).RuntimeId); 113AccessibleObject expected = checkedListBox.AccessibilityObject; 119AccessibleObject itemAccessibleObject = checkedListBox.AccessibilityObject.GetChild(itemIndex); 135AccessibleObject itemAccessibleObject1 = checkedListBox.AccessibilityObject.GetChild(0); 136AccessibleObject itemAccessibleObject2 = checkedListBox.AccessibilityObject.GetChild(1); 137AccessibleObject itemAccessibleObject3 = checkedListBox.AccessibilityObject.GetChild(2); 154AccessibleObject itemAccessibleObject1 = checkedListBox.AccessibilityObject.GetChild(0); 155AccessibleObject itemAccessibleObject2 = checkedListBox.AccessibilityObject.GetChild(1); 156AccessibleObject itemAccessibleObject3 = checkedListBox.AccessibilityObject.GetChild(2); 170Assert.Equal(string.Empty, checkedListBox.AccessibilityObject.GetChild(0).DefaultAction); 189Assert.Equal(expected, checkedListBox.AccessibilityObject.GetChild(0).DefaultAction); 202Assert.Equal(expected, ((BSTR)checkedListBox.AccessibilityObject.GetChild(0).GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree()); 215Assert.Equal(isChecked.ToString(), checkedListBox.AccessibilityObject.GetChild(0).Value); 230checkedListBox.AccessibilityObject.GetChild(0).DoDefaultAction(); 248checkedListBox.AccessibilityObject.GetChild(0).DoDefaultAction(); 264Assert.Equal((ToggleState)toggleState, checkedListBox.AccessibilityObject.GetChild(0).ToggleState); 265Assert.Equal(checkValue.ToString(), ((BSTR)checkedListBox.AccessibilityObject.GetChild(0).GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree()); 280checkedListBox.AccessibilityObject.GetChild(0).Toggle(); 298checkedListBox.AccessibilityObject.GetChild(0).Toggle(); 310Assert.True((bool)checkedListBox.AccessibilityObject.GetChild(0).GetPropertyValue(UIA_PROPERTY_ID.UIA_IsInvokePatternAvailablePropertyId)); 322AccessibleObject accessibleObject = checkedListBox.AccessibilityObject.GetChild(0); 334(CheckedListBoxAccessibleObject)checkedListBox.AccessibilityObject); 354(CheckedListBoxAccessibleObject)checkedListBox.AccessibilityObject); 369(CheckedListBoxAccessibleObject)checkedListBox.AccessibilityObject);
System\Windows\Forms\AccessibleObjects\ColumnHeader.ListViewColumnHeaderAccessibleObjectTests.cs (1)
48_ = listView.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ComboBox.ChildAccessibleObjectTests.cs (1)
33control.AccessibilityObject.Name = testName;
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (27)
39AccessibleObject accessibleObject = control.AccessibilityObject; 62AccessibleObject accessibleObject = control.AccessibilityObject; 88AccessibleObject accessibleObject = comboBox.AccessibilityObject; 113Assert.Equal(VARIANT.Empty, comboBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)); 114Assert.Equal(VARIANT.Empty, comboBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId)); 119Assert.Equal(name, ((BSTR)comboBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree()); 120Assert.Equal(name, ((BSTR)comboBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId)).ToStringAndFree()); 158AccessibleObject firstChild = comboBox.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild) as AccessibleObject; 194AccessibleObject lastChild = comboBox.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild) as AccessibleObject; 215AccessibleObject accessibleObject = comboBox.AccessibilityObject; 224return comboBox.AccessibilityObject as ComboBox.ComboBoxAccessibleObject; 233VARIANT actual = control.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 261VARIANT actual = comboBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 273VARIANT actual = comboBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NativeWindowHandlePropertyId); 299ComboBox.ComboBoxAccessibleObject accessibleObject = (ComboBox.ComboBoxAccessibleObject)comboBox.AccessibilityObject; 311Assert.Equal(comboBox.AccessibleDefaultActionDescription, comboBox.AccessibilityObject.DefaultAction); 320Assert.Empty(comboBox.AccessibilityObject.DefaultAction); 331Assert.Empty(comboBox.AccessibilityObject.DefaultAction); 351Assert.Equal(expectedAction, comboBox.AccessibilityObject.DefaultAction); 362Assert.Equal(expectedAction, ((BSTR)comboBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId)).ToStringAndFree()); 373comboBox.AccessibilityObject.DoDefaultAction(); 388comboBox.AccessibilityObject.DoDefaultAction(); 406comboBox.AccessibilityObject.DoDefaultAction(); 417var accessibleObject = (ComboBox.ComboBoxAccessibleObject)comboBox.AccessibilityObject; 433var accessibleObject = (ComboBox.ComboBoxAccessibleObject)comboBox.AccessibilityObject; 449var accessibleObject = (ComboBox.ComboBoxAccessibleObject)comboBox.AccessibilityObject; 471var accessibleObject = (ComboBox.ComboBoxAccessibleObject)comboBox.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (10)
31ComboBox.ComboBoxAccessibleObject comboBoxAccessibleObject = (ComboBox.ComboBoxAccessibleObject)control.AccessibilityObject; 70ComboBox.ComboBoxAccessibleObject accessibleObject = Assert.IsType<ComboBox.ComboBoxAccessibleObject>(control.AccessibilityObject); 95ComboBoxItemAccessibleObjectCollection itemAccessibleObjects = ((ComboBox.ComboBoxAccessibleObject)comboBox.AccessibilityObject).ItemAccessibleObjects; 134ComboBoxItemAccessibleObjectCollection itemAccessibleObjects = ((ComboBox.ComboBoxAccessibleObject)comboBox.AccessibilityObject).ItemAccessibleObjects; 199ComboBoxAccessibleObject comboBoxAccessibleObject = (ComboBoxAccessibleObject)comboBox.AccessibilityObject; 218ComboBoxAccessibleObject comboBoxAccessibleObject = (ComboBoxAccessibleObject)comboBox.AccessibilityObject; 261ComboBoxAccessibleObject comboBoxAccessibleObject = (ComboBoxAccessibleObject)comboBox.AccessibilityObject; 313ComboBoxAccessibleObject comboBoxAccessibleObject = (ComboBoxAccessibleObject)comboBox.AccessibilityObject; 401ComboBoxAccessibleObject comboBoxAccessibleObject = (ComboBoxAccessibleObject)comboBox.AccessibilityObject; 463ComboBoxAccessibleObject comboBoxAccessibleObject = (ComboBoxAccessibleObject)comboBox.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (33)
117AccessibleObject accessibleObject = ownerControl.AccessibilityObject; 137AccessibleObject accessibleObject = ownerControl.AccessibilityObject; 1214var accessibleObject = control.AccessibilityObject; 1251AccessibleObject controlAccessibleObject = control.AccessibilityObject; 1274AccessibleObject controlAccessibleObject = control.AccessibilityObject; 1291AccessibleObject controlAccessibleObject = control.AccessibilityObject; 1310AccessibleObject controlAccessibleObject = control.AccessibilityObject; 1328AccessibleObject controlAccessibleObject = control.AccessibilityObject; 1370AccessibleObject controlAccessibleObject = control.AccessibilityObject; 1398UIA_CONTROLTYPE_ID actual = (UIA_CONTROLTYPE_ID)(int)control.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 1414Assert.True(control.AccessibilityObject is Control.ControlAccessibleObject); 1416IRawElementProviderFragment.Interface actual = (IRawElementProviderFragment.Interface)control.AccessibilityObject.FragmentRoot; 1418Assert.True(actual is null || actual == control.AccessibilityObject); 1443Assert.True(control.AccessibilityObject is Control.ControlAccessibleObject); 1446Assert.True(((IRawElementProviderFragment.Interface)control.AccessibilityObject).get_FragmentRoot(actual).Succeeded); 1448Assert.Equal(toolStrip.AccessibilityObject, ComHelpers.GetObjectForIUnknown(actual)); 1460Assert.True(control.AccessibilityObject is Control.ControlAccessibleObject); 1463= control.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent); 1476Assert.True(control.AccessibilityObject is Control.ControlAccessibleObject); 1479= control.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_NextSibling); 1481= control.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_PreviousSibling); 1512Assert.True(control.AccessibilityObject is Control.ControlAccessibleObject); 1514IRawElementProviderFragment.Interface actual = control.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent); 1515AccessibleObject expected = toolStrip.AccessibilityObject; 1550Assert.True(control.AccessibilityObject is Control.ControlAccessibleObject); 1552IRawElementProviderFragment.Interface actual = control.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_NextSibling); 1586Assert.True(control.AccessibilityObject is Control.ControlAccessibleObject); 1588IRawElementProviderFragment.Interface actual = control.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_PreviousSibling); 1601VARIANT actual = ownerControl.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AutomationIdPropertyId); 1618var accessibleObject = (Control.ControlAccessibleObject)control.AccessibilityObject; 1638var accessibleObject = (Control.ControlAccessibleObject)control.AccessibilityObject; 1664var accessibleObject = control.AccessibilityObject; 1707var accessibleObject = control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\DataGridView.DataGridViewEditingPanelAccessibleObjectTests.cs (9)
52VARIANT actual = editingPanel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 73object actual = editingPanel.AccessibilityObject.Role; 102VARIANT actual = editingPanel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 115Assert.True((bool)editingPanel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsLegacyIAccessiblePatternAvailablePropertyId)); 116Assert.Equal(string.Empty, ((BSTR)editingPanel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_HelpTextPropertyId)).ToStringAndFree()); 117Assert.Equal(SR.DataGridView_AccEditingPanelAccName, ((BSTR)editingPanel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree()); 118Assert.Equal(SR.DataGridView_AccEditingPanelAccName, ((BSTR)editingPanel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId)).ToStringAndFree()); 119Assert.Equal(VARIANT.Empty, editingPanel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)); 120Assert.False((bool)editingPanel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsPasswordPropertyId));
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (137)
19AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 39string itemStatus = ((BSTR)dataGridView.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ItemStatusPropertyId)).ToStringAndFree(); 67string itemStatus = ((BSTR)dataGridView.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ItemStatusPropertyId)).ToStringAndFree(); 77AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 87AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 99AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 110AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 121AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 134AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 148AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 171AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 191AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 213AccessibleObject focusedCell = dataGridView.AccessibilityObject.GetFocused(); 233AccessibleObject actual = (AccessibleObject)dataGridView.AccessibilityObject.GetItem(i, j); 253AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 263Type type = dataGridView.AccessibilityObject.GetType(); 276AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 295AccessibleObject accessibilityObject = dataGridView.AccessibilityObject; 305AccessibleObject accessibilityObject = dataGridView.AccessibilityObject; 323AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 347AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 357AccessibleObject accessibilityObject = dataGridView.AccessibilityObject; 369AccessibleObject accessibilityObject = dataGridView.AccessibilityObject; 385Assert.Equal(dataGridView.ReadOnly, dataGridView.AccessibilityObject.IsReadOnly); 410Assert.Equal(dataGridView.ReadOnly, dataGridView.AccessibilityObject.IsReadOnly); 435Assert.Equal(dataGridView.ReadOnly, dataGridView.AccessibilityObject.IsReadOnly); 454Control.ControlAccessibleObject accessibleObject = (Control.ControlAccessibleObject)dataGridView.AccessibilityObject; 465AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 475AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 503VARIANT actual = dataGridView.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 517bool actual = (bool)dataGridView.AccessibilityObject 534bool actual = (bool)dataGridView.AccessibilityObject 556actualValue = (bool)dataGridView.AccessibilityObject 583bool actual = (bool)dataGridView.AccessibilityObject 602bool actual = (bool)dataGridView.AccessibilityObject 638Assert.Equal(1, dataGridView.AccessibilityObject.GetChildCount()); 657Assert.Equal(1, dataGridView.AccessibilityObject.GetChildCount()); 677Assert.Equal(0, dataGridView.AccessibilityObject.GetChildCount()); 695Assert.Equal(2, dataGridView.AccessibilityObject.GetChildCount()); 713Assert.Equal(2, dataGridView.AccessibilityObject.GetChildCount()); 732Assert.Equal(1, dataGridView.AccessibilityObject.GetChildCount()); 751Assert.Null(dataGridView.AccessibilityObject.GetChild(-1)); 752Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(0)); 753Assert.Null(dataGridView.AccessibilityObject.GetChild(1)); 772Assert.Null(dataGridView.AccessibilityObject.GetChild(-1)); 773Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(0)); 774Assert.Null(dataGridView.AccessibilityObject.GetChild(1)); 794Assert.Null(dataGridView.AccessibilityObject.GetChild(-1)); 795Assert.Null(dataGridView.AccessibilityObject.GetChild(0)); 796Assert.Null(dataGridView.AccessibilityObject.GetChild(1)); 814AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 816Assert.Null(dataGridView.AccessibilityObject.GetChild(-1)); 817Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.GetChild(0)); 818Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(1)); 819Assert.Null(dataGridView.AccessibilityObject.GetChild(2)); 837AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 839Assert.Null(dataGridView.AccessibilityObject.GetChild(-1)); 840Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.GetChild(0)); 841Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.GetChild(1)); 842Assert.Null(dataGridView.AccessibilityObject.GetChild(2)); 861AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 863Assert.Null(dataGridView.AccessibilityObject.GetChild(-1)); 864Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.GetChild(0)); 865Assert.Null(dataGridView.AccessibilityObject.GetChild(1)); 884Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 885Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 904Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 905Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 925Assert.Null(dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 926Assert.Null(dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 941AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 945Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 946Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 961AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 965Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 966Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 981AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 986Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 987Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 1006Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1007Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1026Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1027Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1047Assert.Null(dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1048Assert.Null(dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1063AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1067Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1068Assert.Equal(dataGridView.Rows[1].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1083AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1087Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1088Assert.Equal(dataGridView.Rows[0].AccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1103AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1108Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 1109Assert.Equal(topRowAccessibilityObject, dataGridView.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 1121var columnHeaders = dataGridView.AccessibilityObject.GetColumnHeaders(); 1140var columnHeaders = dataGridView.AccessibilityObject.GetColumnHeaders(); 1158var columnHeaders = dataGridView.AccessibilityObject.GetColumnHeaders(); 1176var columnHeaders = dataGridView.AccessibilityObject.GetColumnHeaders(); 1196var columnHeaders = dataGridView.AccessibilityObject.GetColumnHeaders(); 1212var rowHeaders = dataGridView.AccessibilityObject.GetRowHeaders(); 1232var rowHeaders = dataGridView.AccessibilityObject.GetRowHeaders(); 1251var rowHeaders = dataGridView.AccessibilityObject.GetRowHeaders(); 1270var rowHeaders = dataGridView.AccessibilityObject.GetRowHeaders(); 1291var rowHeaders = dataGridView.AccessibilityObject.GetRowHeaders(); 1322Assert.Equal(expected, dataGridView.AccessibilityObject.GetItem(i, j)); 1345AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 1396Assert.Equal(expected, dataGridView.AccessibilityObject.GetItem(i, j)); 1414AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 1419Assert.Equal(accessibleObjectCell3, dataGridView.AccessibilityObject.GetItem(0, 0)); 1420Assert.Equal(accessibleObjectCell2, dataGridView.AccessibilityObject.GetItem(0, 1)); 1421Assert.Equal(accessibleObjectCell1, dataGridView.AccessibilityObject.GetItem(0, 2)); 1437AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 1441Assert.Equal(accessibleObjectCell3, dataGridView.AccessibilityObject.GetItem(0, 0)); 1442Assert.Equal(accessibleObjectCell2, dataGridView.AccessibilityObject.GetItem(0, 1)); 1443Assert.Null(dataGridView.AccessibilityObject.GetItem(0, 2)); 1459AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 1463Assert.Equal(accessibleObjectCell3, dataGridView.AccessibilityObject.GetItem(0, 0)); 1464Assert.Equal(accessibleObjectCell1, dataGridView.AccessibilityObject.GetItem(0, 1)); 1465Assert.Null(dataGridView.AccessibilityObject.GetItem(0, 2)); 1481AccessibleObject accessibleObject = dataGridView.AccessibilityObject; 1485Assert.Equal(accessibleObjectCell2, dataGridView.AccessibilityObject.GetItem(0, 0)); 1486Assert.Equal(accessibleObjectCell1, dataGridView.AccessibilityObject.GetItem(0, 1)); 1487Assert.Null(dataGridView.AccessibilityObject.GetItem(0, 2)); 1499Assert.Equal(3, dataGridView.AccessibilityObject.ColumnCount); 1512Assert.Equal(2, dataGridView.AccessibilityObject.ColumnCount); 1526Assert.Equal(1, dataGridView.AccessibilityObject.ColumnCount); 1541Assert.Equal(0, dataGridView.AccessibilityObject.ColumnCount); 1554Assert.Equal(4, dataGridView.AccessibilityObject.RowCount); 1568Assert.Equal(3, dataGridView.AccessibilityObject.RowCount); 1583Assert.Equal(2, dataGridView.AccessibilityObject.RowCount); 1599Assert.Equal(1, dataGridView.AccessibilityObject.RowCount); 1612Assert.Equal(3, dataGridView.AccessibilityObject.RowCount); 1626Assert.Equal(2, dataGridView.AccessibilityObject.RowCount); 1641Assert.Equal(1, dataGridView.AccessibilityObject.RowCount); 1657Assert.Equal(0, dataGridView.AccessibilityObject.RowCount); 1668VARIANT actual = dataGridView.AccessibilityObject 1682VARIANT actual = dataGridView.AccessibilityObject
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (2)
48AccessibleObject rr = dataGridView.AccessibilityObject; // it is necessary to be in time to initialize elements 79AccessibleObject rr = dataGridView.AccessibilityObject; // it is necessary to be in time to initialize elements
System\Windows\Forms\AccessibleObjects\DataGridViewColumnHeaderCellAccessibleObjectTests.cs (2)
33Assert.Equal(control.AccessibilityObject.GetChild(0), accessibleObject.Parent); 158AccessibleObject topRowAccessibleObject = control.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject;
System\Windows\Forms\AccessibleObjects\DataGridViewComboBoxEditingControlAccessibleObjectTests.cs (8)
36object actual = control.AccessibilityObject.Role; 48UIA_CONTROLTYPE_ID actual = (UIA_CONTROLTYPE_ID)(int)control.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 76UIA_CONTROLTYPE_ID actual = (UIA_CONTROLTYPE_ID)(int)control.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 90object actual = control.AccessibilityObject.FragmentNavigate((NavigateDirection)direction); 102object firstChild = control.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild); 103object lastChild = control.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild); 106Assert.Equal(((DataGridViewComboBoxEditingControlAccessibleObject)control.AccessibilityObject).DropDownButtonUiaProvider, lastChild); 115Assert.True(control.AccessibilityObject is Control.ControlAccessibleObject);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (16)
414AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 444AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 471AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 498AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 711AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 738AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 762AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 786AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 809AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 839AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 866AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 893AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1106AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1133AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1157AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1181AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject;
System\Windows\Forms\AccessibleObjects\DataGridViewRowsAccessibleObjectTests.cs (4)
24AccessibleObject accObject = dataGridView.AccessibilityObject; // it is necessary to be in time to initialize elements 32int accDataGridViewHeight = dataGridView.AccessibilityObject.BoundingRectangle.Height; 53AccessibleObject accObject = dataGridView.AccessibilityObject; // it is necessary to be in time to initialize elements 61int accDataGridViewHeight = dataGridView.AccessibilityObject.BoundingRectangle.Height;
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (9)
58var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, [control.AccessibilityObject]); 60Assert.Equal(control.AccessibilityObject, accessibleObject.Parent); 86var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, [control.AccessibilityObject]); 104var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, [control.AccessibilityObject]); 128var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, [control.AccessibilityObject]); 147var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, [control.AccessibilityObject]); 163var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, [control.AccessibilityObject]); 184var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, [control.AccessibilityObject]); 203var accessibleObject = (AccessibleObject)Activator.CreateInstance(type, [control.AccessibilityObject]);
System\Windows\Forms\AccessibleObjects\DataGridViewTextBoxEditingControl.DataGridViewTextBoxEditingControlAccessibleObjectTests.cs (8)
33AccessibleObject accessibleObject = textCellControl.AccessibilityObject; 44AccessibleObject accessibleObject = textCellControl.AccessibilityObject; 55AccessibleObject accessibleObject = textCellControl.AccessibilityObject; 65var actual = (UIA_CONTROLTYPE_ID)(int)textCellControl.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 84object actual = textCellControl.AccessibilityObject.Role; 112var actual = (UIA_CONTROLTYPE_ID)(int)textCellControl.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 128object actual = control.AccessibilityObject.FragmentNavigate((NavigateDirection)direction); 139Assert.True(control.AccessibilityObject is Control.ControlAccessibleObject);
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (2)
154AccessibleObject expected = control.AccessibilityObject.GetChild(0); 185AccessibleObject expected = control.AccessibilityObject.GetChild(0)?.GetChild(1);
System\Windows\Forms\AccessibleObjects\DataGridViewTopRowAccessibleObjectTests.cs (67)
18AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 23Assert.Equal(dataGridView.AccessibilityObject, topRowAccessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 39AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 43Assert.Equal(dataGridView.AccessibilityObject, topRowAccessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 56AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 59Assert.Equal(dataGridView.AccessibilityObject, topRowAccessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 75AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 93AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 111AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 129AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 149AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 165AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 183AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 201AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 221AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 240AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 261AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 282AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 303AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 323AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 344AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 365AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 386AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 403AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 421AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 439AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 457AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 477AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 493AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 511AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 529AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 549AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 568AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 589AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 610AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 631AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 651AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 672AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 693AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 714AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 734AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 750AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 771AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 790AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 809AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 827AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 852AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 870AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 891AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 912AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 935AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 959AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 981AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1003AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1024AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1050AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1074AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1098AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1118AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1133AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1149AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1166AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1180AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1195AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1211AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1228AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1238AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject;
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (21)
29VARIANT actual = dateTimePicker.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 41AccessibleRole actual = dateTimePicker.AccessibilityObject.Role; 53string actual = ((BSTR)dateTimePicker.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LocalizedControlTypePropertyId)).ToStringAndFree(); 82UIA_CONTROLTYPE_ID actual = (UIA_CONTROLTYPE_ID)(int)dateTimePicker.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 96VARIANT actual = dateTimePicker.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LocalizedControlTypePropertyId); 108AccessibleObject accessibleObject = dateTimePicker.AccessibilityObject; 126var accessibleObject = (DateTimePickerAccessibleObject)dateTimePicker.AccessibilityObject; 140var accessibleObject = (DateTimePickerAccessibleObject)dateTimePicker.AccessibilityObject; 156var accessibleObject = (DateTimePickerAccessibleObject)dateTimePicker.AccessibilityObject; 177var accessibleObject = (DateTimePickerAccessibleObject)dateTimePicker.AccessibilityObject; 198var accessibleObject = (DateTimePickerAccessibleObject)dateTimePicker.AccessibilityObject; 215var accessibleObject = (DateTimePickerAccessibleObject)dateTimePicker.AccessibilityObject; 232var accessibleObject = (DateTimePickerAccessibleObject)dateTimePicker.AccessibilityObject; 256AccessibleObject accessibleObject = dateTimePicker.AccessibilityObject; 271AccessibleObject accessibleObject = dateTimePicker.AccessibilityObject; 282Assert.Equal(string.Empty, dateTimePicker.AccessibilityObject.Name); 292Assert.Equal(testAccessibleName, dateTimePicker.AccessibilityObject.Name); 310AccessibleObject accessibleObject = dateTimePicker.AccessibilityObject; 329AccessibleObject accessibleObject = dateTimePicker.AccessibilityObject; 368string keyboardShortcut = dateTimePicker1.AccessibilityObject.KeyboardShortcut; 372keyboardShortcut = dateTimePicker2.AccessibilityObject.KeyboardShortcut;
System\Windows\Forms\AccessibleObjects\DomainUpDownAccessibleObjectTests.cs (7)
15AccessibleObject accessibleObject = domainUpDown.AccessibilityObject; 26var actual = (UIA_CONTROLTYPE_ID)(int)domainUpDown.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 38AccessibleRole actual = domainUpDown.AccessibilityObject.Role; 48AccessibleObject accessibleObject = domainUpDown.AccessibilityObject; 58AccessibleObject accessibleObject = domainUpDown.AccessibilityObject; 88var actual = (UIA_CONTROLTYPE_ID)(int)domainUpDown.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 102AccessibleObject accessibleObject = domainUpDown.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\FlowLayoutPanel.FlowLayoutPanelAccessibleObjectTests.cs (3)
16Assert.NotNull(flowLayoutPanel.AccessibilityObject); 27var actual = (UIA_CONTROLTYPE_ID)(int)flowLayoutPanel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 40AccessibleRole actual = flowLayoutPanel.AccessibilityObject.Role;
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (9)
29AccessibleObject accessibleObject = form.AccessibilityObject; 45AccessibleObject accessibleObject = form.AccessibilityObject; 63AccessibleObject accessibleObject = form.AccessibilityObject; 95VARIANT actual = form.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 108AccessibleRole actual = form.AccessibilityObject.Role; 130var accessibleObject = (FocusEventsCounterFormAccessibleObject)form.AccessibilityObject; 150var accessibleObject = (FocusEventsCounterFormAccessibleObject)form.AccessibilityObject; 179Rectangle actual = form.AccessibilityObject.BoundingRectangle; 200Rectangle actual = form.AccessibilityObject.BoundingRectangle;
System\Windows\Forms\AccessibleObjects\GroupBoxAccessibleObjectTests.cs (5)
16AccessibleObject groupBoxAccessibleObject = groupBox.AccessibilityObject; 63AccessibleRole actual = groupBox.AccessibilityObject.Role; 88VARIANT actual = groupBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 115VARIANT actual = groupBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 127string actual = ((BSTR)ownerControl.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_AutomationIdPropertyId)).ToStringAndFree();
System\Windows\Forms\AccessibleObjects\HScrollBar.HScrollBarAccessibleObjectTests.cs (17)
32AccessibleObject accessibleObject = scrollBar.AccessibilityObject; 48Assert.IsType<ScrollBarAccessibleObject>(scrollBar.AccessibilityObject); 63Assert.IsType<ScrollBarAccessibleObject>(scrollBar.AccessibilityObject); 75VARIANT actual = scrollBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 103VARIANT actual = scrollBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 115var accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 127ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 138ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 149ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 160ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 171ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 182ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 198ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 214ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 230ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 246ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 267Assert.Equal(enabled, (bool)scrollBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsEnabledPropertyId));
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (5)
142var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 158var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 174var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 190var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 356var accessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (4)
164var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 182var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 198var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 394var accessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (5)
152var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 168var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 184var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 200var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 366var accessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (4)
153var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 169var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 185var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 381var accessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (5)
141var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 157var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 173var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 189var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 286var accessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\LabelAccessibleObjectTests.cs (7)
24LabelAccessibleObject accessibilityObject = (LabelAccessibleObject)label.AccessibilityObject; 64AccessibleRole actual = label.AccessibilityObject.Role; 90VARIANT actual = label.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 118VARIANT actual = label.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 135var accessibilityObject = control.AccessibilityObject as ControlAccessibleObjectWithNotificationCounter; 151LabelAccessibleObject accessibleObject = (LabelAccessibleObject)label.AccessibilityObject; 176LabelAccessibleObject accessibleObject = (LabelAccessibleObject)label.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\LinkLabel.Link.LinkAccessibleObjectTests.cs (3)
115AccessibleObject expected = linkLabel.AccessibilityObject; 135AccessibleObject expected = linkLabel.AccessibilityObject; 138Assert.Equal(linkLabel.AccessibilityObject, linkAccessibleObject.Parent);
System\Windows\Forms\AccessibleObjects\LinkLabel.LinkLabelAccessibleObjectTests.cs (10)
28var actual = (UIA_CONTROLTYPE_ID)(int)linkLabel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 56var actual = (UIA_CONTROLTYPE_ID)(int)linkLabel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 69AccessibleRole actual = linkLabel.AccessibilityObject.Role; 89int actual = linkLabel.AccessibilityObject.GetChildCount(); 112var actual = (LinkAccessibleObject)linkLabel.AccessibilityObject.GetChild(childIndex); 130Assert.Null(linkLabel.AccessibilityObject.GetChild(childIndex)); 142bool actual = (bool)linkLabel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsEnabledPropertyId); 152AccessibleObject accessibleObject = linkLabel.AccessibilityObject; 167AccessibleObject accessibleObject = linkLabel.AccessibilityObject; 182AccessibleObject accessibleObject = linkLabel.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (2)
31Assert.IsType<ListBox.ListBoxAccessibleObject>(control.AccessibilityObject); 171var accessibleObject = listBox.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (15)
18int childCount = listBox.AccessibilityObject.GetChildCount(); 22var child = listBox.AccessibilityObject.GetChild(i); 33UIA_CONTROLTYPE_ID actual = (UIA_CONTROLTYPE_ID)(int)listBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 52AccessibleRole actual = listBox.AccessibilityObject.Role; 80UIA_CONTROLTYPE_ID actual = (UIA_CONTROLTYPE_ID)(int)listBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 91AccessibleObject accessibleObject = listBox.AccessibilityObject; 170var listBoxAccessibleObject = listBox.AccessibilityObject; 191var listBoxAccessibleObject = listBox.AccessibilityObject; 210var listBoxAccessibleObject = listBox.AccessibilityObject; 238ListBoxAccessibleObject accessibilityObject = (ListBoxAccessibleObject)listBox.AccessibilityObject; 258var accessibleObject = listBox.AccessibilityObject; 285var accessibleObject = listBox.AccessibilityObject; 299var accessibleObject = listBox.AccessibilityObject; 330var accessibleObject = listBox.AccessibilityObject; 350var result = listBox.AccessibilityObject.HitTest(testPoint.X, testPoint.Y);
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (59)
18AccessibleObject accessibleObject = listView.AccessibilityObject; 27AccessibleObject accessibleObject = listView.AccessibilityObject; 43AccessibleObject accessibleObject = listView.AccessibilityObject; 52AccessibleObject accessibleObject = listView.AccessibilityObject; 61AccessibleObject accessibleObject = listView.AccessibilityObject; 71AccessibleObject accessibleObject = listView.AccessibilityObject; 96AccessibleObject accessibleObject = listView.AccessibilityObject; 126AccessibleObject accessibleObject = listView.AccessibilityObject; 150AccessibleObject accessibleObject = listView.AccessibilityObject; 167AccessibleObject accessibleObject = listView.AccessibilityObject; 184AccessibleObject accessibleObject = listView.AccessibilityObject; 197AccessibleObject accessibleObject = listView.AccessibilityObject; 209AccessibleObject listAccessibleObject = list.AccessibilityObject; 306bool actual = ((ListView.ListViewAccessibleObject)listView.AccessibilityObject).OwnerHasDefaultGroup; 371bool actual = ((ListView.ListViewAccessibleObject)listView.AccessibilityObject).OwnerHasDefaultGroup; 434Assert.Equal(expected, listView.AccessibilityObject.GetChildCount()); 473Assert.Equal(createHandle ? 0 : -1, listView.AccessibilityObject.GetChildCount()); 550AccessibleObject accessibleObject = listView.AccessibilityObject; 619Assert.Null(listView.AccessibilityObject.GetChild(-1)); 620Assert.Null(listView.AccessibilityObject.GetChild(0)); 621Assert.Null(listView.AccessibilityObject.GetChild(1)); 680AccessibleObject accessibleObject = listView.AccessibilityObject; 762AccessibleObject accessibleObject = listView.AccessibilityObject; 825AccessibleObject accessibleObject = listView.AccessibilityObject; 894Assert.Equal(-1, listView.AccessibilityObject.GetChildIndex(null)); 939var listSelection = listView.AccessibilityObject.GetSelection(); 960var listSelection = listView.AccessibilityObject.GetSelection(); 978var listSelection = listView.AccessibilityObject.GetSelection(); 1040var listSelection = listView.AccessibilityObject.GetSelection(); 1073var listSelection = listView.AccessibilityObject.GetSelection(); 1103var listSelection = listView.AccessibilityObject.GetSelection(); 1131var actual = (UIA_CONTROLTYPE_ID)(int)listView.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 1179Assert.Null(listView.AccessibilityObject.HitTest(point.X, point.Y)); 1197AccessibleObject accessibleObject = listView.AccessibilityObject; 1258Assert.Equal(-1, listView.AccessibilityObject.GetChildCount()); 1271Assert.Equal(expectedCount, listView.AccessibilityObject.GetChildCount()); 1281Assert.Null(listView.AccessibilityObject.GetChild(0)); 1291Assert.Null(listView.AccessibilityObject.GetChild(-1)); 1301Assert.Null(listView.AccessibilityObject.GetChild(10)); 1325Assert.Equal(expectedValues[0], listView.AccessibilityObject.GetChild(0)); 1326Assert.Equal(expectedValues[1], listView.AccessibilityObject.GetChild(1)); 1327Assert.Equal(expectedValues[2], listView.AccessibilityObject.GetChild(2)); 1336AccessibleObject accessibleObject = listView.AccessibilityObject; 1351AccessibleObject accessibleObject = listView.AccessibilityObject; 1373Assert.Equal(expectedFirstChild, listView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 1374Assert.Equal(expectedLastChild, listView.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 1379listView.AccessibilityObject.HitTest(point.X, point.Y); 1456AccessibleObject accessibleObject = listView.AccessibilityObject; 1480AccessibleObject accessibleObject = listView.AccessibilityObject; 1517AccessibleObject accessibleObject = listView.AccessibilityObject; 1550AccessibleObject accessibleObject = listView.AccessibilityObject; 1569AccessibleObject accessibleObject = listView.AccessibilityObject; 1597AccessibleObject accessibleObject = listView.AccessibilityObject; 1621AccessibleObject accessibleObject = listView.AccessibilityObject; 1645AccessibleObject accessibleObject = listView.AccessibilityObject; 1667AccessibleObject accessibleObject = listView.AccessibilityObject; 1701AccessibleObject accessibleObject = listView.AccessibilityObject; 1754IRawElementProviderFragment.Interface uiaProvider = listView.AccessibilityObject; 1767var listViewAccessibleObject = listView.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (13)
160Assert.Equal(listView.AccessibilityObject, listView.DefaultGroup.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 166Assert.Equal(listView.AccessibilityObject, groups[0].AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 172Assert.Equal(listView.AccessibilityObject, groups[1].AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 235Assert.Equal(listView.AccessibilityObject, groups[0].AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 241Assert.Equal(listView.AccessibilityObject, listView.Groups[1].AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 290AccessibleObject accessibleObject = list.AccessibilityObject; 858AccessibleObject accessibleObject = listView.AccessibilityObject; 882AccessibleObject accessibleObject = listView.AccessibilityObject; 922AccessibleObject accessibleObject = listView.AccessibilityObject; 1166Assert.Equal(listView.AccessibilityObject, listViewGroup.AccessibilityObject.FragmentRoot); 1175ListView.ListViewAccessibleObject accessibleObject = listView.AccessibilityObject as ListView.ListViewAccessibleObject; 1196ListView.ListViewAccessibleObject accessibleObject = listView.AccessibilityObject as ListView.ListViewAccessibleObject; 1197Rectangle listViewBounds = listView.AccessibilityObject.Bounds;
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (23)
164: listView.AccessibilityObject; 617Assert.Equal(accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_Parent), listView.AccessibilityObject); 618Assert.Equal(accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent), listView.AccessibilityObject); 619Assert.Equal(accessibleObject3.FragmentNavigate(NavigateDirection.NavigateDirection_Parent), listView.AccessibilityObject); 1302Assert.Equal(listView.AccessibilityObject, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1306Assert.Equal(listView.AccessibilityObject, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1310Assert.Equal(listView.AccessibilityObject, accessibleObject3.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1375Assert.Equal(listView.AccessibilityObject, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1379Assert.Equal(listView.AccessibilityObject, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1383Assert.Equal(listView.AccessibilityObject, accessibleObject3.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1466Assert.Equal(listView.AccessibilityObject, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1470Assert.Equal(listView.AccessibilityObject, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1474Assert.Equal(listView.AccessibilityObject, accessibleObject3.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1483Assert.Equal(listView.AccessibilityObject, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1487Assert.Equal(listView.AccessibilityObject, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1491Assert.Equal(listView.AccessibilityObject, accessibleObject3.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1499Assert.Equal(listView.AccessibilityObject, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1503Assert.Equal(listView.AccessibilityObject, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1507Assert.Equal(listView.AccessibilityObject, accessibleObject3.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1515Assert.Equal(listView.AccessibilityObject, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1519Assert.Equal(listView.AccessibilityObject, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1523Assert.Equal(listView.AccessibilityObject, accessibleObject3.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 1646Assert.Equal(-1, listView.Items[0].AccessibilityObject.GetChildIndex(listView.AccessibilityObject));
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemBaseAccessibleObjectTests.cs (3)
61Assert.Equal(control.AccessibilityObject, item.AccessibilityObject.FragmentRoot); 157Assert.Equal(control.AccessibilityObject, actual); 353Assert.Equal(control.AccessibilityObject, item.AccessibilityObject.ItemSelectionContainer);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (2)
196AccessibleObject listItemAccessibleObject = listView1.AccessibilityObject.GetChild(1); 220AccessibleObject listItemAccessibleObject = listView1.AccessibilityObject.GetChild(1);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemListAccessibleObjectTests.cs (1)
43Assert.Equal(control.AccessibilityObject, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_Parent));
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
94Assert.Equal(listView.AccessibilityObject, accessibilityObject.FragmentRoot);
System\Windows\Forms\AccessibleObjects\MaskedTextBox.MaskedTextBoxAccessibleObjectTests.cs (10)
17Assert.NotNull(maskedTextBox.AccessibilityObject); 28var actual = (UIA_CONTROLTYPE_ID)(int)maskedTextBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 41AccessibleRole actual = maskedTextBox.AccessibilityObject.Role; 69var actual = (UIA_CONTROLTYPE_ID)(int)maskedTextBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 84VARIANT actual = maskedTextBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId); 107string actual = ((BSTR)maskedTextBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree(); 122string actual = ((BSTR)maskedTextBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree(); 136string actual = ((BSTR)maskedTextBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree(); 150bool actual = (bool)maskedTextBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsPasswordPropertyId); 164bool actual = (bool)maskedTextBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsPasswordPropertyId);
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (44)
21AccessibleObject menuStripAccessibleObject = menuStrip.AccessibilityObject; 32AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 42AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 51AccessibleObject menuStripAccessibleObject = menuStrip.AccessibilityObject; 66AccessibleObject menuStripAccessibleObject = menuStrip.AccessibilityObject; 80AccessibleObject menuStripAccessibleObject = menuStrip.AccessibilityObject; 92var actual = (UIA_CONTROLTYPE_ID)(int)menuStrip.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 104AccessibleRole actual = menuStrip.AccessibilityObject.Role; 132var actual = (UIA_CONTROLTYPE_ID)(int)menuStrip.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 155AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 165AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 174AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 232AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 244AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 271AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 283AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 306AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 329AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 350AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 366AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 383AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 398AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 414AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 432AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 450AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 467AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 484AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 541AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 553AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 564AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 580AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 597AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 613AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 629AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 645AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 667AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 689AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 706AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 723AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 749AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 788AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 831AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 865AccessibleObject accessibleObject = menuStrip.AccessibilityObject; 890AccessibleObject accessibleObject = menuStrip.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (25)
16var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 33var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 48var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 61var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 103var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 115var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 142var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 168var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 180var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 195var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 207var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 219var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 231var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 244var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 256var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 268var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 288var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 310var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 322var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 335var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 352var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 377var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 394var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 418var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 430var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (6)
16MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 141MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 161MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 193MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 215MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 241MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarButtonAccessibleObjectTests.cs (9)
15MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 29MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 40MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 51MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 64MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 77MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 90MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 103MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 121MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarCellAccessibleObjectTests.cs (5)
89var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 117var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 165var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 184var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 227var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarDayOfWeekCellAccessibleObjectTests.cs (4)
113MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 132var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 176var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 211MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarHeaderAccessibleObjectTests.cs (1)
59MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarNextButtonAccessibleObjectTests.cs (1)
18var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarPreviousButtonAccessibleObjectTests.cs (4)
15var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 28var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 41var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 54var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarRowAccessibleObjectTests.cs (6)
72MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 115var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 130var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 165var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 189var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 209MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarTodayLinkAccessibleObjectTests.cs (5)
15var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 32var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 48var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 62var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 76var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarWeekNumberCellAccessibleObjectTests.cs (4)
117var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 136var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 167var controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 217MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (20)
30int actual = (int)monthCalendar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 42AccessibleRole actual = monthCalendar.AccessibilityObject.Role; 70var actual = (UIA_CONTROLTYPE_ID)(int)monthCalendar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 84Assert.Equal(dt.ToLongDateString(), ((BSTR)monthCalendar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree()); 85Assert.Equal(AccessibleStates.None, (AccessibleStates)(int)monthCalendar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleStatePropertyId)); 96var accessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 106var accessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 116var accessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 134var accessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 146var accessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 169var accessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 183var accessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 196var accessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 276var accessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 286var accessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 308var accessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 325var accessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 347var accessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 362var accessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 373var accessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarChildAccessibleObjectTests.cs (7)
23MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 42MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 55MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 67MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 83MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 95MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 108MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\NumericUpDownAccessibleObjectTests.cs (7)
14AccessibleObject accessibleObject = numericUpDown.AccessibilityObject; 22AccessibleObject accessibleObject = numericUpDown.AccessibilityObject; 32AccessibleObject accessibleObject = numericUpDown.AccessibilityObject; 46var actual = (UIA_CONTROLTYPE_ID)(int)numericUpDown.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 58AccessibleRole actual = numericUpDown.AccessibilityObject.Role; 86var actual = (UIA_CONTROLTYPE_ID)(int)numericUpDown.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 99AccessibleObject accessibleObject = numericUpDown.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (7)
110var actual = (UIA_CONTROLTYPE_ID)(int)panel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 237Assert.Equal(childPanel.AccessibilityObject, panelAccessibleObject.GetChild(0)); 252Assert.Equal(buttonFirst.AccessibilityObject, panel.AccessibilityObject.Navigate(AccessibleNavigation.FirstChild)); 253Assert.Equal(buttonLast.AccessibilityObject, panel.AccessibilityObject.Navigate(AccessibleNavigation.LastChild)); 276Rectangle boundingRectangle = panel1.AccessibilityObject.BoundingRectangle;
System\Windows\Forms\AccessibleObjects\PictureBox.PictureBoxAccessibleObjectTests.cs (1)
143var actual = (UIA_CONTROLTYPE_ID)(int)pictureBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (6)
22Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 47Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 85Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 104Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 116var actual = (UIA_CONTROLTYPE_ID)(int)progressBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 144var actual = (UIA_CONTROLTYPE_ID)(int)progressBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\PropertyGrid.PropertyGridAccessibleObjectTests.cs (2)
72AccessibleObject accessibleObject = propertyGrid.AccessibilityObject; 102var actual = (UIA_CONTROLTYPE_ID)(int)propertyGrid.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\PropertyGridToolStrip.PropertyGridToolStripAccessibleObjectTests.cs (2)
30var actual = (UIA_CONTROLTYPE_ID)(int)propertyGridToolStrip.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 44AccessibleRole actual = propertyGridToolStrip.AccessibilityObject.Role;
System\Windows\Forms\AccessibleObjects\RadioButton.RadioButtonAccessibleObjectTests.cs (1)
247var actual = (UIA_CONTROLTYPE_ID)(int)radioButton.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (9)
29AccessibleObject accessibleObject = scrollBar.AccessibilityObject; 41AccessibleObject accessibleObject = scrollBar.AccessibilityObject; 97var actual = (UIA_CONTROLTYPE_ID)(int)scrollBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 109using VARIANT actual = scrollBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_RuntimeIdPropertyId); 111Assert.Equal(scrollBar.AccessibilityObject.RuntimeId, actual.ToObject()); 125bool actual = (bool)scrollBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsEnabledPropertyId); 151ScrollBar.ScrollBarAccessibleObject accessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 166AccessibleObject accessibleObject = scrollBar.AccessibilityObject; 183AccessibleObject accessibleObject = scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarChildAccessibleObjectTests.cs (2)
58Assert.Equal(control.AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 68Assert.Equal(control.AccessibilityObject, accessibleObject.FragmentRoot);
System\Windows\Forms\AccessibleObjects\SplitContainer.SplitContainerAccessibleObjectTests.cs (3)
27var actual = (UIA_CONTROLTYPE_ID)(int)splitContainer.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 40AccessibleRole actual = splitContainer.AccessibilityObject.Role; 68var actual = (UIA_CONTROLTYPE_ID)(int)splitContainer.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\Splitter.SplitterAccessibleObjectTests.cs (1)
148var actual = (UIA_CONTROLTYPE_ID)(int)splitter.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (42)
21AccessibleObject statusStripAccessibleObject = statusStrip.AccessibilityObject; 31AccessibleObject statusStripAccessibleObject = statusStrip.AccessibilityObject; 46AccessibleObject statusStripAccessibleObject = statusStrip.AccessibilityObject; 60AccessibleObject statusStripAccessibleObject = statusStrip.AccessibilityObject; 72var actual = (UIA_CONTROLTYPE_ID)(int)statusStrip.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 84AccessibleRole actual = statusStrip.AccessibilityObject.Role; 112var actual = (UIA_CONTROLTYPE_ID)(int)statusStrip.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 135AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 145AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 154AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 212AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 224AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 251AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 263AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 286AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 309AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 330AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 346AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 363AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 378AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 394AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 412AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 430AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 447AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 464AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 521AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 533AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 544AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 560AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 577AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 593AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 609AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 625AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 647AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 669AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 686AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 703AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 729AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 768AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 811AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 845AccessibleObject accessibleObject = statusStrip.AccessibilityObject; 871AccessibleObject accessibleObject = statusStrip.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (62)
19Assert.NotNull(tabControl.AccessibilityObject); 30var actual = (UIA_CONTROLTYPE_ID)(int)tabControl.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 43AccessibleRole actual = tabControl.AccessibilityObject.Role; 71var actual = (UIA_CONTROLTYPE_ID)(int)tabControl.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 84TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 109TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 127TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 138TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 150TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 164TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 180TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 199TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 218TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 221Assert.Equal(pages[0].AccessibilityObject, accessibleObject.GetChild(0)); 239TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 241Assert.Equal(pages[0].AccessibilityObject, accessibleObject.GetChild(0)); 245Assert.Equal(pages[1].AccessibilityObject, accessibleObject.GetChild(0)); 249Assert.Equal(pages[2].AccessibilityObject, accessibleObject.GetChild(0)); 263TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 278TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 292TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 293AccessibleObject expectedAccessibleObject = tabControl.SelectedTab.AccessibilityObject; 310TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 328TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 345TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 360TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 375TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 377Assert.Equal(tabControl.SelectedTab.AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 391TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 393Assert.Equal(tabControl.SelectedTab.AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 394Assert.Equal(pages[0].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 411TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 413Assert.Equal(tabControl.SelectedTab.AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 414Assert.Equal(pages[1].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 430TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 432Assert.Equal(pages[0].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 436Assert.Equal(pages[1].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 440Assert.Equal(pages[2].AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 459TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 481TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 497TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 509TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 520TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 531TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 542TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 557TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 572TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 587TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 601TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 627Assert.NotNull(tabControl.AccessibilityObject.RuntimeId); 628Assert.Equal(tabControl.InternalHandle, (IntPtr)tabControl.AccessibilityObject.RuntimeId[1]); 637TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 648TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 661TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 679TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 699TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 719TabControlAccessibleObject accessibleObject = Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 730using VARIANT actual = tabControl.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_RuntimeIdPropertyId); 732Assert.Equal(tabControl.AccessibilityObject.RuntimeId, actual.ToObject()); 746bool actual = (bool)tabControl.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsEnabledPropertyId); 763string actual = ((BSTR)tabControl.AccessibilityObject.GetPropertyValue((UIA_PROPERTY_ID)propertyID)).ToStringAndFree(); 788TabControlAccessibleObject accessibleObject = (TabControlAccessibleObject)tabControl.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (22)
163Assert.Equal(tabControl.AccessibilityObject, accessibleObject.FragmentRoot); 204Assert.Equal(tabControl.AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 220Assert.Equal(pages[0].AccessibilityObject, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_PreviousSibling)); 241Assert.Equal(pages[0].AccessibilityObject, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_PreviousSibling)); 248Assert.Equal(pages[1].AccessibilityObject, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_PreviousSibling)); 560Assert.Equal(tabControl.AccessibilityObject, accessibleObject.ItemSelectionContainer); 619Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 642Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 686Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 705Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 751Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 773Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 816Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 838Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 878Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 943Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 967Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 1010Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 1034Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 1084Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 1099Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject); 1114Assert.IsType<TabControlAccessibleObject>(tabControl.AccessibilityObject);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (42)
19Assert.NotNull(tabPage.AccessibilityObject); 30var actual = (UIA_CONTROLTYPE_ID)(int)tabPage.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 48Assert.Equal(expectedAccessibleRole, tabPage.AccessibilityObject.Role); 74var actual = (UIA_CONTROLTYPE_ID)(int)tabPage.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 93TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(tabPage.AccessibilityObject); 113TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(tabPage.AccessibilityObject); 128TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(tabPage.AccessibilityObject); 146Assert.NotNull(tabPage.AccessibilityObject.RuntimeId); 147Assert.Equal(tabPage.HandleInternal, tabPage.AccessibilityObject.RuntimeId[1]); 160TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(tabPage.AccessibilityObject); 180TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(tabPage.AccessibilityObject); 192TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(tabPage.AccessibilityObject); 209TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(pages[0].AccessibilityObject); 228TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(pages[0].AccessibilityObject); 230Assert.Equal(tabControl.AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 247TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(pages[0].AccessibilityObject); 249Assert.Equal(tabControl.AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 268TabPageAccessibleObject accessibleObject1 = Assert.IsType<TabPageAccessibleObject>(pages[0].AccessibilityObject); 269TabPageAccessibleObject accessibleObject2 = Assert.IsType<TabPageAccessibleObject>(pages[1].AccessibilityObject); 270TabPageAccessibleObject accessibleObject3 = Assert.IsType<TabPageAccessibleObject>(pages[2].AccessibilityObject); 273Assert.Equal(tabControl.AccessibilityObject, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 279Assert.Equal(tabControl.AccessibilityObject, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 285Assert.Equal(tabControl.AccessibilityObject, accessibleObject3.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 294Assert.Equal(tabControl.AccessibilityObject, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 300Assert.Equal(tabControl.AccessibilityObject, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 306Assert.Equal(tabControl.AccessibilityObject, accessibleObject3.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 315Assert.Equal(tabControl.AccessibilityObject, accessibleObject1.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 321Assert.Equal(tabControl.AccessibilityObject, accessibleObject2.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 327Assert.Equal(tabControl.AccessibilityObject, accessibleObject3.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 344TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(tabPage.AccessibilityObject); 355TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(tabPage.AccessibilityObject); 366TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(tabPage.AccessibilityObject); 377TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(tabPage.AccessibilityObject); 388TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(tabPage.AccessibilityObject); 399TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(tabPage.AccessibilityObject); 416TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(pages[0].AccessibilityObject); 435TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(tabPage.AccessibilityObject); 455TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(tabPage.AccessibilityObject); 475TabPageAccessibleObject accessibleObject = Assert.IsType<TabPageAccessibleObject>(tabPage.AccessibilityObject); 492string actual = ((BSTR)tabPage.AccessibilityObject.GetPropertyValue((UIA_PROPERTY_ID)propertyID)).ToStringAndFree(); 517TabPageAccessibleObject accessibleObject = (TabPageAccessibleObject)tabPage.AccessibilityObject; 548Rectangle boundingRectangle = tabPage.AccessibilityObject.BoundingRectangle;
System\Windows\Forms\AccessibleObjects\TextBoxAccessibleObjectTests.cs (11)
16AccessibleObject textBoxAccessibleObject = textBox.AccessibilityObject; 31AccessibleObject textBoxAccessibleObject = textBox.AccessibilityObject; 45var actual = (UIA_CONTROLTYPE_ID)(int)textBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 58AccessibleRole actual = textBox.AccessibilityObject.Role; 86var actual = (UIA_CONTROLTYPE_ID)(int)textBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 100string actual = ((BSTR)textBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId)).ToStringAndFree(); 114bool actual = (bool)textBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsPasswordPropertyId); 129string helpText = ((BSTR)textBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_HelpTextPropertyId)).ToStringAndFree(); 142bool actual = (bool)textBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsPasswordPropertyId); 157bool actual = (bool)textBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsPasswordPropertyId); 173bool actual = (bool)textBox.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsPasswordPropertyId);
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (10)
16AccessibleObject textBoxAccessibleObject = textBoxBase.AccessibilityObject; 31AccessibleObject textBoxAccessibleObject = textBoxBase.AccessibilityObject; 45AccessibleObject textBoxAccessibleObject = textBoxBase.AccessibilityObject; 59AccessibleObject accessibleObject = textBoxBase.AccessibilityObject; 72AccessibleObject accessibleObject = textBoxBase.AccessibilityObject; 84AccessibleObject accessibleObject = textBoxBase.AccessibilityObject; 95AccessibleObject accessibleObject = textBoxBase.AccessibilityObject; 107AccessibleObject accessibleObject = textBoxBase.AccessibilityObject; 129AccessibleObject accessibleObject = textBoxBase.AccessibilityObject; 159var actual = (UIA_CONTROLTYPE_ID)(int)textBoxBase.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (42)
31AccessibleObject toolStripAccessibleObject = toolStrip.AccessibilityObject; 41AccessibleObject toolStripAccessibleObject = toolStrip.AccessibilityObject; 56AccessibleObject toolStripAccessibleObject = toolStrip.AccessibilityObject; 70AccessibleObject toolStripAccessibleObject = toolStrip.AccessibilityObject; 82var actual = (UIA_CONTROLTYPE_ID)(int)toolStrip.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 110var actual = (UIA_CONTROLTYPE_ID)(int)toolStrip.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 133AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 143AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 152AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 164var accessibleObject = toolStrip.AccessibilityObject; 225AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 237AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 264AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 276AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 299AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 322AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 343AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 359AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 376AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 391AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 407AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 425AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 443AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 460AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 477AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 534AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 546AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 557AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 573AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 590AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 606AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 622AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 638AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 660AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 682AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 699AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 716AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 742AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 781AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 824AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 858AccessibleObject accessibleObject = toolStrip.AccessibilityObject; 883AccessibleObject accessibleObject = toolStrip.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxAccessibleObjectTests.cs (1)
18_ = toolStripComboBox.Control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxControlAccessibleObjectTests.cs (5)
78object firstChild = control.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild); 79object lastChild = control.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild); 82Assert.Equal(((ToolStripComboBoxControlAccessibleObject)control.AccessibilityObject).DropDownButtonUiaProvider, lastChild); 96object actual = control.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent); 98Assert.Equal(toolStrip.AccessibilityObject, actual);
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripControlHostAccessibleObjectTests.cs (3)
61Assert.Equal(control.AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild)); 62Assert.Equal(control.AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild)); 77_ = toolStripControlHost.Control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripHostedControlAccessibleObjectTests.cs (1)
27Assert.True(GetIsOffscreenPropertyValue(item.Control.AccessibilityObject));
System\Windows\Forms\AccessibleObjects\ToolStripDropDown.ToolStripDropDownAccessibleObjectTests.cs (3)
27AccessibleObject accessibleObject = toolStripDropDown.AccessibilityObject; 40AccessibleObject accessibleObject = toolStripDropDown.AccessibilityObject; 69AccessibleObject accessibleObject = toolStripDropDown.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (1)
91AccessibleObject expected = dropDownItem.DropDown.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripDropDownItemAccessibleObjectTests.cs (1)
212_ = toolStripDropDownItem.DropDown.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (14)
36AccessibleObject accessibleObject = item.DropDown.AccessibilityObject; 64AccessibleObject accessibleObject = item.DropDown.AccessibilityObject; 125AccessibleObject accessibleObject = ownerItem.DropDown.AccessibilityObject; 139AccessibleObject accessibleObject1 = parentItem1.DropDown.AccessibilityObject; 153AccessibleObject accessibleObject2 = parentItem2.DropDown.AccessibilityObject; 216AccessibleObject accessibleObject = ownerItem.DropDown.AccessibilityObject; 230AccessibleObject accessibleObject1 = parentItem1.DropDown.AccessibilityObject; 244AccessibleObject accessibleObject2 = parentItem2.DropDown.AccessibilityObject; 269ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObject accessibleObject = (ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObject)dropDown.AccessibilityObject; 281ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObject accessibleObject = (ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObject)dropDown.AccessibilityObject; 291ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObject accessibleObject = (ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObject)contextMenu.AccessibilityObject; 303ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObject accessibleObject = (ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObject)dropDown.AccessibilityObject; 315ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObject accessibleObject = (ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObject)dropDown.AccessibilityObject; 325ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObject accessibleObject = (ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObject)contextMenu.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (1)
209AccessibleObject expected = toolStrip.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripNumericUpDown.ToolStripNumericUpDownAccessibleObjectTests.cs (3)
16ToolStripHostedControlAccessibleObject accessibleObject = (ToolStripHostedControlAccessibleObject)toolStripNumericUpDown.Control.AccessibilityObject; 29Assert.Equal(UIA_CONTROLTYPE_ID.UIA_SpinnerControlTypeId, (UIA_CONTROLTYPE_ID)(int)toolStripNumericUpDown.Control.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId)); 30Assert.Equal(VARIANT.Empty, toolStripNumericUpDown.Control.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ValueValuePropertyId));
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (11)
29AccessibleObject accessibleObject = toolStripOverflow.AccessibilityObject; 43object actual = toolStripOverflow.AccessibilityObject.Role; 72AccessibleObject accessibleObject = toolStripOverflow.AccessibilityObject; 91AccessibleObject accessibleObject = toolStripOverflow.AccessibilityObject; 104AccessibleObject accessibleObject = toolStripOverflow.AccessibilityObject; 116AccessibleObject accessibleObject = toolStripOverflow.AccessibilityObject; 129AccessibleObject accessibleObject = toolStrip.OverflowButton.DropDown.AccessibilityObject; 146AccessibleObject accessibleObject = toolStrip.OverflowButton.DropDown.AccessibilityObject; 159AccessibleObject accessibleObject = toolStrip.OverflowButton.DropDown.AccessibilityObject; 176AccessibleObject accessibleObject = toolStrip.OverflowButton.DropDown.AccessibilityObject; 190AccessibleObject accessibleObject = toolStripOverflow.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObjectTests.cs (1)
98AccessibleObject expected = toolStrip.OverflowButton.DropDown.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripPanel.ToolStripPanelAccessibleObjectTests.cs (2)
15var accessibleObject = (ToolStripPanelAccessibleObject)control.AccessibilityObject; 26var accessibleObject = (ToolStripPanelAccessibleObject)control.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripProgressBar.ToolStripProgressBarControl.ToolStripProgressBarControlAccessibleObjectTests.cs (8)
27var actual = (UIA_CONTROLTYPE_ID)(int)toolStripProgressBarControl.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 46object actual = toolStripProgressBarControl.AccessibilityObject.Role; 74AccessibleObject accessibleObject = toolStripProgressBarControl.AccessibilityObject; 90object actual = control.AccessibilityObject.FragmentNavigate((NavigateDirection)direction); 106object actual = control.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent); 108Assert.Equal(toolStrip.AccessibilityObject, actual); 130object nextSibling = control.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_NextSibling); 131object previousSibling = control.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_PreviousSibling);
System\Windows\Forms\AccessibleObjects\ToolStripScrollButton.ToolStripScrollButtonAccessibleObjectTests.cs (2)
43AccessibleObject accessibleObject = dropDownMenu.AccessibilityObject; 105AccessibleObject accessibleObject = dropDownMenu.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObjectTests.cs (1)
59AccessibleObject expected = toolStrip.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripTextBox.ToolStripTextBoxControlAccessibleObjectTests.cs (3)
41AccessibleObject accessibleObject = textBox.AccessibilityObject; 53AccessibleObject accessibleObject = textBox.AccessibilityObject; 65AccessibleObject accessibleObject = textBox.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (33)
23Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 48Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 86Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 114Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 132Control.ControlAccessibleObject accessibilityObject = Assert.IsAssignableFrom<Control.ControlAccessibleObject>(ownerControl.AccessibilityObject); 144TrackBar.TrackBarAccessibleObject accessibilityObject = Assert.IsAssignableFrom<TrackBar.TrackBarAccessibleObject>(trackBar.AccessibilityObject); 156TrackBar.TrackBarAccessibleObject accessibilityObject = Assert.IsAssignableFrom<TrackBar.TrackBarAccessibleObject>(trackBar.AccessibilityObject); 168TrackBar.TrackBarAccessibleObject accessibilityObject = Assert.IsAssignableFrom<TrackBar.TrackBarAccessibleObject>(trackBar.AccessibilityObject); 180TrackBar.TrackBarAccessibleObject accessibilityObject = Assert.IsAssignableFrom<TrackBar.TrackBarAccessibleObject>(trackBar.AccessibilityObject); 193TrackBar.TrackBarAccessibleObject accessibilityObject = Assert.IsAssignableFrom<TrackBar.TrackBarAccessibleObject>(trackBar.AccessibilityObject); 204TrackBar.TrackBarAccessibleObject accessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 219TrackBar.TrackBarAccessibleObject accessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 233TrackBar.TrackBarAccessibleObject accessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 248TrackBar.TrackBarAccessibleObject accessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 264var actual = (UIA_CONTROLTYPE_ID)(int)trackBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 276Assert.Equal(AccessibleRole.Slider, trackBar.AccessibilityObject.Role); 302var actual = (UIA_CONTROLTYPE_ID)(int)trackBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 317Assert.Equal(defaultAction, trackBar.AccessibilityObject.DefaultAction); 328VARIANT actual = trackBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_LegacyIAccessibleDefaultActionPropertyId); 346TrackBar.TrackBarAccessibleObject accessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 358TrackBar.TrackBarAccessibleObject accessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 370TrackBar.TrackBarAccessibleObject accessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 382TrackBar.TrackBarAccessibleObject accessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 394Assert.True(trackBar.AccessibilityObject.IsPatternSupported(UIA_PATTERN_ID.UIA_ValuePatternId)); 395Assert.True(trackBar.AccessibilityObject.IsPatternSupported(UIA_PATTERN_ID.UIA_LegacyIAccessiblePatternId)); 409Assert.Equal(enabled, (bool)trackBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsEnabledPropertyId)); 417using VARIANT actual = trackBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_RuntimeIdPropertyId); 419Assert.Equal(trackBar.AccessibilityObject.RuntimeId, actual.ToObject()); 434TrackBar.TrackBarAccessibleObject accessibilityObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 446int actual = (int)trackBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NativeWindowHandlePropertyId); 470TrackBar.TrackBarAccessibleObject accessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 504TrackBar.TrackBarAccessibleObject accessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 522TrackBar.TrackBarAccessibleObject accessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarChildAccessibleObjectTests.cs (2)
57Assert.Equal(control.AccessibilityObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent)); 67Assert.Equal(control.AccessibilityObject, accessibleObject.FragmentRoot);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (4)
165var trackBarAccessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 181var trackBarAccessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 197var trackBarAccessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 396TrackBar.TrackBarAccessibleObject trackBarAccessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (4)
166var trackBarAccessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 182var trackBarAccessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 213var trackBarAccessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 397TrackBar.TrackBarAccessibleObject trackBarAccessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (5)
94var trackBarAccessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 110var trackBarAccessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 126var trackBarAccessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 142var trackBarAccessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject; 259TrackBar.TrackBarAccessibleObject trackBarAccessibleObject = (TrackBar.TrackBarAccessibleObject)trackBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (3)
125Assert.Equal(control.AccessibilityObject, node.AccessibilityObject.FragmentRoot); 137Assert.Equal(control.AccessibilityObject, actual); 439Assert.Equal(control.AccessibilityObject, node.AccessibilityObject.ItemSelectionContainer);
System\Windows\Forms\AccessibleObjects\TreeView.TreeViewAccessibleObjectTests.cs (22)
18Assert.NotNull(control.AccessibilityObject); 34var actual = (UIA_CONTROLTYPE_ID)(int)control.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 47AccessibleRole actual = control.AccessibilityObject.Role; 58AccessibleObject accessibleObject = control.AccessibilityObject; 70AccessibleObject accessibleObject = control.AccessibilityObject; 83AccessibleObject accessibleObject = control.AccessibilityObject; 106Assert.Equal(expected, control.AccessibilityObject.GetChild(index)); 118Assert.Equal(expected, control.AccessibilityObject.GetChildCount()); 128Assert.Equal(isEnabled, (bool)control.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsEnabledPropertyId)); 138Assert.True((bool)control.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId)); 148Assert.False((bool)control.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId)); 159Assert.False((bool)control.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId)); 170Assert.True(control.AccessibilityObject.IsPatternSupported((UIA_PATTERN_ID)patternId)); 180Assert.True(control.AccessibilityObject.IsSelectionRequired); 189Assert.False(control.AccessibilityObject.IsSelectionRequired); 198Assert.Empty(control.AccessibilityObject.GetSelection()); 208Assert.Empty(control.AccessibilityObject.GetSelection()); 222Assert.Equal(expected, control.AccessibilityObject.GetSelection()); 233AccessibleObject accessibleObject = control.AccessibilityObject; 248AccessibleObject accessibleObject = control.AccessibilityObject; 265Assert.Equal(node.AccessibilityObject, control.AccessibilityObject.HitTest(point.X, point.Y)); 284control.AccessibilityObject.GetChildCount().Should().Be(expected);
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (1)
93Assert.Equal(treeView.AccessibilityObject, accessibilityObject.FragmentRoot);
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObjectTests.cs (10)
33var actual = (UIA_CONTROLTYPE_ID)(int)upDownButtons.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 46AccessibleRole actual = upDownButtons.AccessibilityObject.Role; 75var actual = (UIA_CONTROLTYPE_ID)(int)upDownButtons.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 90string actual = ((BSTR)upDownButtons.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree(); 102using VARIANT actual = upDownButtons.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_RuntimeIdPropertyId); 104Assert.Equal(upDownButtons.AccessibilityObject.RuntimeId, actual.ToObject()); 113using VARIANT actual = upDownButtons.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_BoundingRectanglePropertyId); 116Assert.Equal(upDownButtons.AccessibilityObject.BoundingRectangle, actualRectangle); 141UpDownButtonsAccessibleObject accessibleObject = (UpDownButtonsAccessibleObject)upDownButtons.AccessibilityObject; 156UpDownButtonsAccessibleObject accessibleObject = (UpDownButtonsAccessibleObject)upDownButtons.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownEdit.UpDownEditAccessibleObjectTests.cs (12)
41AccessibleObject accessibleObject = upDownEdit.AccessibilityObject; 54AccessibleObject accessibleObject = upDownEdit.AccessibilityObject; 65AccessibleObject accessibleObject = upDownEdit.AccessibilityObject; 76AccessibleObject accessibleObject = upDownEdit.AccessibilityObject; 87AccessibleObject accessibleObject = upDownEdit.AccessibilityObject; 98AccessibleObject accessibleObject = upDownEdit.AccessibilityObject; 99Assert.Equal(upDown.AccessibilityObject.KeyboardShortcut, accessibleObject.KeyboardShortcut); 112AccessibleObject accessibleObject = upDownEdit.AccessibilityObject; 125AccessibleObject accessibleObject = upDownEdit.AccessibilityObject; 138AccessibleObject accessibleObject = upDownEdit.AccessibilityObject; 158AccessibleObject accessibleObject = upDownEdit.AccessibilityObject; 189var actual = (UIA_CONTROLTYPE_ID)(int)upDownEdit.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (5)
142var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 158var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 174var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 190var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 340var accessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (4)
164var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 182var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 198var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 378var accessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (5)
152var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 168var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 184var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 200var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 350var accessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (4)
153var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 169var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 185var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 365var accessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (5)
141var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 157var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 173var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 189var scrollBarAccessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 286var accessibleObject = (ScrollBar.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (16)
31AccessibleObject accessibleObject = scrollBar.AccessibilityObject; 47Assert.IsType<ScrollBarAccessibleObject>(scrollBar.AccessibilityObject); 62Assert.IsType<ScrollBarAccessibleObject>(scrollBar.AccessibilityObject); 74var actual = (UIA_CONTROLTYPE_ID)(int)scrollBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 102var actual = (UIA_CONTROLTYPE_ID)(int)scrollBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 114var accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 126ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 137ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 148ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 159ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 170ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 186ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 202ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 218ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 234ScrollBarAccessibleObject accessibleObject = (ScrollBarAccessibleObject)scrollBar.AccessibilityObject; 255Assert.Equal(enabled, (bool)scrollBar.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsEnabledPropertyId));
System\Windows\Forms\AccessibleObjects\WebBrowser.WebBrowserAccessibleObjectTests.cs (3)
15WebBrowserAccessibleObject accessibleObject = (WebBrowserAccessibleObject)webBrowser.AccessibilityObject; 32WebBrowserAccessibleObject accessibleObject = (WebBrowserAccessibleObject)webBrowser.AccessibilityObject; 44WebBrowserAccessibleObject accessibleObject = (WebBrowserAccessibleObject)webBrowser.AccessibilityObject;
System\Windows\Forms\ButtonTests.cs (7)
1011Assert.NotSame(control.AccessibilityObject, instance); 1032Assert.NotSame(control.AccessibilityObject, instance); 1066Assert.NotSame(control.AccessibilityObject, instance); 1088Assert.NotSame(control.AccessibilityObject, instance); 1109Assert.NotSame(control.AccessibilityObject, instance); 3324var accessibleObject = (SubButtonAccessibleObject)button.AccessibilityObject; 3339var accessibleObject = (SubButtonAccessibleObject)button.AccessibilityObject;
System\Windows\Forms\CheckBoxTests.cs (1)
537var accessibleObject = (SubCheckBoxAccessibleObject)checkBox.AccessibilityObject;
System\Windows\Forms\ComboBox.ComboBoxChildDropDownButtonUiaProviderTests.cs (1)
123return comboBox.AccessibilityObject as ComboBox.ComboBoxAccessibleObject;
System\Windows\Forms\ComboBox.ComboBoxChildEditUiaProviderTests.cs (1)
101? ((ComboBox.ComboBoxAccessibleObject)comboBox.AccessibilityObject).DropDownButtonUiaProvider
System\Windows\Forms\ComboBox.ComboBoxChildTextUiaProviderTests.cs (1)
66AccessibleObject expectedItem = ((ComboBox.ComboBoxAccessibleObject)comboBox.AccessibilityObject).DropDownButtonUiaProvider;
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (1)
893using var rawElementProvider = ComHelpers.GetComScope<IRawElementProviderSimple>(comboBox.AccessibilityObject);
System\Windows\Forms\Combobox.ObjectCollectionTests.cs (1)
1489return (ComboBoxAccessibleObject)comboBox.AccessibilityObject;
System\Windows\Forms\ComboBoxTests.cs (10)
2200Assert.IsType<AutomationEventCountingComboBoxAccessibleObject>(comboBox.AccessibilityObject); 2242Assert.IsType<AutomationEventCountingComboBoxAccessibleObject>(comboBox.AccessibilityObject); 2305Assert.IsType<AutomationEventCountingComboBoxAccessibleObject>(comboBox.AccessibilityObject); 2345Assert.IsType<AutomationEventCountingComboBoxAccessibleObject>(comboBox.AccessibilityObject); 2367Assert.Equal(0, ((AutomationEventCountingComboBoxAccessibleObject)comboBox.AccessibilityObject)._raiseAutomationCallCount); 2382Assert.Equal(0, ((AutomationEventCountingComboBoxAccessibleObject)comboBox.AccessibilityObject)._raiseAutomationCallCount); 2390Assert.IsType<AutomationEventCountingComboBoxAccessibleObject>(comboBox.AccessibilityObject); 2400Assert.Equal(1, ((AutomationEventCountingComboBoxAccessibleObject)comboBox.AccessibilityObject)._raiseAutomationCallCount); 2408Assert.IsType<AutomationEventCountingComboBoxAccessibleObject>(comboBox.AccessibilityObject); 2419Assert.Equal(2, ((AutomationEventCountingComboBoxAccessibleObject)comboBox.AccessibilityObject)._raiseAutomationCallCount);
System\Windows\Forms\ControlTests.Methods.cs (1)
410Assert.NotSame(control.AccessibilityObject, instance);
System\Windows\Forms\ControlTests.Properties.cs (10)
28Control.ControlAccessibleObject accessibleObject = Assert.IsType<Control.ControlAccessibleObject>(control.AccessibilityObject); 29Assert.Same(accessibleObject, control.AccessibilityObject); 46Control.ControlAccessibleObject accessibleObject = Assert.IsType<Control.ControlAccessibleObject>(control.AccessibilityObject); 47Assert.Same(accessibleObject, control.AccessibilityObject); 73Assert.Same(expected, control.AccessibilityObject); 74Assert.Same(control.AccessibilityObject, control.AccessibilityObject); 90Assert.Same(controlAccessibleObject, control.AccessibilityObject); 91Assert.Same(control.AccessibilityObject, control.AccessibilityObject);
System\Windows\Forms\DataGridViewCellTests.cs (6)
4750Assert.True(dataGridView.AccessibilityObject is Control.ControlAccessibleObject); 4760Assert.NotNull(dataGridView.EditingControl.AccessibilityObject.Parent); 4761Assert.Same(cell.AccessibilityObject, dataGridView.EditingControl.AccessibilityObject.Parent); 4769Assert.NotNull(dataGridView.EditingControl.AccessibilityObject.Parent); 4770Assert.Same(cell.AccessibilityObject, dataGridView.EditingControl.AccessibilityObject.Parent); 6471_ = dataGridView.AccessibilityObject;
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
1005Assert.NotSame(control.AccessibilityObject, instance);
System\Windows\Forms\DomainUpDownTests.cs (2)
942_sub.AccessibilityObject.Should().NotBeSameAs(instance); 955_sub.AccessibilityObject.Should().NotBeSameAs(instance);
System\Windows\Forms\GroupBoxTests.cs (2)
1387Assert.NotSame(control.AccessibilityObject, instance); 1402Assert.NotSame(control.AccessibilityObject, instance);
System\Windows\Forms\HelpProviderTests.cs (18)
52Assert.Equal(0, control.AccessibilityObject.GetHelpTopic(out string fileName)); 198Assert.Equal(expectedHelpTopic, control.AccessibilityObject.GetHelpTopic(out string fileName)); 206Assert.Equal(expectedHelpTopic, control.AccessibilityObject.GetHelpTopic(out fileName)); 227Assert.Equal(expectedHelpTopic, control.AccessibilityObject.GetHelpTopic(out string fileName)); 234Assert.Equal(expectedHelpTopic, control.AccessibilityObject.GetHelpTopic(out fileName)); 265Assert.Equal(expectedHelpTopic, control.AccessibilityObject.GetHelpTopic(out string fileName)); 363Assert.Equal(string.IsNullOrEmpty(helpString) ? null : helpString, control.AccessibilityObject.Help); 369Assert.Equal(string.IsNullOrEmpty(helpString) ? null : helpString, control.AccessibilityObject.Help); 383Assert.Equal(helpString, control.AccessibilityObject.Help); 389Assert.Equal(helpString, control.AccessibilityObject.Help); 403Assert.Equal(string.IsNullOrEmpty(helpString) ? null : helpString, control.AccessibilityObject.Help); 409Assert.Equal(string.IsNullOrEmpty(helpString) ? null : helpString, control.AccessibilityObject.Help); 461Assert.Equal(1, control.AccessibilityObject.GetHelpTopic(out string fileName)); 464Assert.Equal("HelpString", control.AccessibilityObject.Help); 468Assert.Equal(expectedHelpTopic, control.AccessibilityObject.GetHelpTopic(out fileName)); 470Assert.Null(control.AccessibilityObject.Help); 474Assert.Equal(1, control.AccessibilityObject.GetHelpTopic(out fileName)); 476Assert.Equal("HelpString", control.AccessibilityObject.Help);
System\Windows\Forms\ListBoxTests.cs (1)
4765Assert.NotSame(control.AccessibilityObject, instance);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
710Point position = listView.AccessibilityObject.Bounds.Location;
System\Windows\Forms\ListViewTests.cs (7)
4338_ = listView.AccessibilityObject; 4398Assert.NotNull(listView.AccessibilityObject); 4432AccessibleObject accessibleObject = listView.AccessibilityObject; 4819Assert.NotNull(listView.AccessibilityObject); 5265listView.AccessibilityObject.Should().NotBeNull(); 5347Assert.NotNull(listView.AccessibilityObject); 5860_ = listView.AccessibilityObject;
System\Windows\Forms\MdiControlStripTests.cs (2)
217AccessibleObject accessibleObject = mdiParent.MainMenuStrip.AccessibilityObject; 263AccessibleObject accessibleObject = mdiParent.MainMenuStrip.AccessibilityObject;
System\Windows\Forms\MenuStripTests.cs (2)
418Assert.NotSame(control.AccessibilityObject, instance); 433Assert.NotSame(control.AccessibilityObject, instance);
System\Windows\Forms\MonthCalendarTests.cs (7)
2297Assert.NotSame(control.AccessibilityObject, instance); 4312var controlAccessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 4326var controlAccessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 4336MonthCalendarAccessibleObject controlAccessibleObject = (MonthCalendarAccessibleObject)control.AccessibilityObject; 4351var controlAccessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 4401var controlAccessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject; 4448var controlAccessibleObject = (MonthCalendarAccessibleObject)monthCalendar.AccessibilityObject;
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibilityObjectTests.cs (12)
18AccessibleObject accessibleObject = control.AccessibilityObject; 36AccessibleObject accessibleObject = control.AccessibilityObject; 56AccessibleObject accessibleObject = control.AccessibilityObject; 57AccessibleObject verticalScrollBarAO = control.VerticalScrollBar.AccessibilityObject; 58AccessibleObject horizontalScrollBarAO = control.HorizontalScrollBar.AccessibilityObject; 86AccessibleObject accessibleObject = control.AccessibilityObject; 87AccessibleObject verticalScrollBarAO = control.VerticalScrollBar.AccessibilityObject; 88AccessibleObject horizontalScrollBarAO = control.HorizontalScrollBar.AccessibilityObject; 116AccessibleObject accessibleObject = control.AccessibilityObject; 117AccessibleObject verticalScrollBarAO = control.VerticalScrollBar.AccessibilityObject; 118AccessibleObject horizontalScrollBarAO = control.HorizontalScrollBar.AccessibilityObject; 152var accessibleObject = (PrintPreviewControlAccessibleObject)control.AccessibilityObject;
System\Windows\Forms\ProgressBarTests.cs (1)
1776Assert.NotSame(control.AccessibilityObject, instance);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\CommandsPane.CommandsPaneAccessibleObjectTests.cs (2)
30UIA_CONTROLTYPE_ID actual = (UIA_CONTROLTYPE_ID)(int)commandsPane.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 50AccessibleRole actual = commandsPane.AccessibilityObject.Role;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\DetailsButton.DetailsButtonAccessibleObjectTests.cs (2)
32UIA_CONTROLTYPE_ID actual = (UIA_CONTROLTYPE_ID)(int)detailsButton.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 55AccessibleRole actual = detailsButton.AccessibilityObject.Role;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\DropDownButton.DropDownButtonAccessibleObjectTests.cs (5)
28UIA_CONTROLTYPE_ID actual = (UIA_CONTROLTYPE_ID)(int)dropDownButton.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 41AccessibleObject accessibleObject = dropDownButton.AccessibilityObject; 61AccessibleRole actual = dropDownButton.AccessibilityObject.Role; 74object actual = dropDownButton.AccessibilityObject.FragmentNavigate((NavigateDirection)direction); 92object actual = dropDownButton.AccessibilityObject.FragmentNavigate(NavigateDirection.NavigateDirection_Parent);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\HelpPane.HelpPaneAccessibleObjectTests.cs (2)
30UIA_CONTROLTYPE_ID actual = (UIA_CONTROLTYPE_ID)(int)helpPane.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 51AccessibleRole actual = helpPane.AccessibilityObject.Role;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObjectTests.cs (4)
21dropDownHolderControl.AccessibilityObject); 44Control.ControlAccessibleObject accessibilityObject = ownerControl.AccessibilityObject as Control.ControlAccessibleObject; 62Assert.Equal(propertyGridView.AccessibilityObject, accessibilityObject.FragmentRoot); 73VARIANT actual = dropDownControlHolder.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObjectTests.cs (2)
82Assert.Same(dropDownHolder.AccessibilityObject, ComHelpers.GetObjectForIUnknown(previousAccessibleObject)); 215Assert.Equal(propertyGrid.AccessibilityObject, accessibleObject.FragmentRoot);
System\Windows\Forms\PropertyGridInternal\PropertyGridView.GridViewListBoxTests.cs (1)
23AccessibleObject gridViewListBoxAccessibleObject = gridViewListBox.AccessibilityObject;
System\Windows\Forms\RadioButtonTests.cs (8)
415Assert.NotSame(control.AccessibilityObject, instance); 436Assert.NotSame(control.AccessibilityObject, instance); 459Assert.NotSame(control.AccessibilityObject, instance); 481Assert.NotSame(control.AccessibilityObject, instance); 523Assert.NotSame(control.AccessibilityObject, instance); 546Assert.NotSame(control.AccessibilityObject, instance); 568Assert.NotSame(control.AccessibilityObject, instance); 1482var accessibleObject = (SubRadioButtonAccessibleObject)radioButton.AccessibilityObject;
System\Windows\Forms\RichTextBoxTests.cs (1)
10618Assert.Equal(mockAccessibleObject.Object, parent.AccessibilityObject);
System\Windows\Forms\ScrollBarTests.cs (4)
3119=> ((VScrollBar.ScrollBarAccessibleObject)vScrollBar.AccessibilityObject).FirstPageButtonAccessibleObject; 3122=> ((VScrollBar.ScrollBarAccessibleObject)vScrollBar.AccessibilityObject).LastPageButtonAccessibleObject; 3138=> ((VScrollBar.ScrollBarAccessibleObject)hScrollBar.AccessibilityObject).FirstPageButtonAccessibleObject; 3141=> ((VScrollBar.ScrollBarAccessibleObject)hScrollBar.AccessibilityObject).LastPageButtonAccessibleObject;
System\Windows\Forms\StatusStripTests.cs (1)
865Assert.NotSame(control.AccessibilityObject, instance);
System\Windows\Forms\TableLayoutPanel.TableLayoutPanelAccessibleObectTests.cs (4)
16Assert.NotNull(tableLayoutPanel.AccessibilityObject); 27var actual = (UIA_CONTROLTYPE_ID)(int)tableLayoutPanel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId); 40AccessibleRole actual = tableLayoutPanel.AccessibilityObject.Role; 68var actual = (UIA_CONTROLTYPE_ID)(int)tableLayoutPanel.AccessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_ControlTypePropertyId);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (2)
758Assert.True(provider.RangeFromAnnotation(ComHelpers.GetComPointer<IRawElementProviderSimple>(textBoxBase.AccessibilityObject), range).Succeeded); 773Assert.True(provider.RangeFromChild(ComHelpers.GetComPointer<IRawElementProviderSimple>(textBoxBase.AccessibilityObject), range).Succeeded);
System\Windows\Forms\ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs (3)
33AccessibleObject accessibleObject = toolStrip.AccessibilityObject.GetChild(1); 49AccessibleObject accessibleObject = toolStrip.AccessibilityObject.GetChild(1); 81AccessibleObject accessibleObject = toolStrip.AccessibilityObject.GetChild(1);
System\Windows\Forms\ToolStripControlHostTests.cs (2)
3836Assert.Equal(1, c.AccessibilityObject.GetHelpTopic(out string fileName)); 4101Assert.Equal(expectedResult, c.AccessibilityObject.GetHelpTopic(out string fileName));
System\Windows\Forms\ToolStripDropDownTests.cs (2)
2930Assert.NotSame(control.AccessibilityObject, instance); 2945Assert.NotSame(control.AccessibilityObject, instance);
System\Windows\Forms\ToolStripItemTests.cs (1)
7083_ = toolStrip.AccessibilityObject;
System\Windows\Forms\ToolStripTests.cs (2)
4213Assert.NotSame(control.AccessibilityObject, instance); 4228Assert.NotSame(control.AccessibilityObject, instance);
System\Windows\Forms\ToolTipTests.cs (1)
850Assert.Equal(mockAccessibleObject.Object, tabControl.AccessibilityObject);
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (1)
381Point position = treeView.AccessibilityObject.Bounds.Location;
System\Windows\Forms\TreeNodeTests.cs (1)
4654hitTestResult.Should().Be(treeView.AccessibilityObject.HitTest(x, y));
System\Windows\Forms\TreeViewTests.cs (5)
5435Assert.NotNull(control.AccessibilityObject); 5461Assert.NotNull(control.AccessibilityObject); 5487Assert.NotNull(control.AccessibilityObject); 5520Assert.NotNull(control.AccessibilityObject); 5546Assert.NotNull(control.AccessibilityObject);
TextBoxBaseTests.cs (3)
757var textBoxBaseAccessibleObject = (TextBoxBase.TextBoxBaseAccessibleObject)control.AccessibilityObject; 773TextBoxBase.TextBoxBaseUiaTextProvider provider = control.AccessibilityObject.TestAccessor().Dynamic._textProvider; 778provider = control.AccessibilityObject.TestAccessor().Dynamic._textProvider;
TextBoxTests.cs (2)
466Assert.NotSame(control.AccessibilityObject, instance); 482Assert.NotSame(control.AccessibilityObject, instance);
System.Windows.Forms.UI.IntegrationTests (15)
ListBoxAccesibleObjectTests.cs (6)
25listBox.AccessibilityObject.State.Should().Be(AccessibleStates.Focusable); 29listBox.AccessibilityObject.State.Should().Be(AccessibleStates.Focused | AccessibleStates.Focusable); 41var result = listBox.AccessibilityObject.HitTest(testPoint.X, testPoint.Y); 43result.Should().Be(listBox.AccessibilityObject); 57var result = listBox.AccessibilityObject.HitTest(testPoint.X, testPoint.Y); 59result.Should().Be(listBox.AccessibilityObject.GetChild(0));
ListBoxItemAccessibleObjestTests.cs (4)
18var itemAccessibleObject = listBox.AccessibilityObject.GetChild(0).Should().BeOfType<ListBox.ListBoxItemAccessibleObject>().Which; 41var itemAccessibleObjectDoubleClick = listBoxDoubleClick.AccessibilityObject.GetChild(0).Should().BeOfType<ListBox.ListBoxItemAccessibleObject>().Which; 45var itemAccessibleObjectNullAction = listBoxNullAction.AccessibilityObject.GetChild(0).Should().BeOfType<ListBox.ListBoxItemAccessibleObject>().Which; 56var itemAccessibleObject = listBox.AccessibilityObject.GetChild(0).Should().BeOfType<ListBox.ListBoxItemAccessibleObject>().Which;
ListViewTests.cs (1)
298listView.AccessibilityObject.HitTest(point.X, point.Y)!;
MonthCalendarAccessibleObjectTests.cs (1)
22MonthCalendarAccessibleObject accessibleObject = (MonthCalendarAccessibleObject)calendar.AccessibilityObject;
MonthCalendarTests.cs (1)
176MonthCalendarAccessibleObject accessibleObject = (MonthCalendarAccessibleObject)calendar.AccessibilityObject;
NumericUpDownTests.cs (1)
23var accessibleObject = control.AccessibilityObject;
PropertyGridViewTests.cs (1)
53Assert.Equal(heightSum, propertyGridView.AccessibilityObject.Bounds.Height - borderHeight - entriesBorders);