11 overrides of GetFocused
System.Windows.Forms (10)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (1)
140public override AccessibleObject? GetFocused()
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
139public override AccessibleObject? GetFocused()
System\Windows\Forms\Controls\DataGridView\DataGridView.SelectedCellsAccessibleObject.cs (1)
47public override AccessibleObject? GetFocused() =>
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
432public override AccessibleObject? GetFocused() => null;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
306public override AccessibleObject? GetFocused()
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (1)
84public override AccessibleObject? GetFocused()
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
219public override AccessibleObject? GetFocused()
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
383public override AccessibleObject? GetFocused() => _focusedCellAccessibleObject;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
245public override AccessibleObject? GetFocused()
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
404public override AccessibleObject? GetFocused()
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
96public override AccessibleObject? GetFocused()
33 references to GetFocused
System.Windows.Forms (8)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
2052private AccessibleObject? GetFocusedObject() => IsClientObject ? GetFocused() : null;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (4)
1396if (_focusedItem == AccessibilityObject.GetFocused()) 1401_focusedItem = AccessibilityObject.GetFocused(); 1710AccessibleObject? item = AccessibilityObject.GetFocused(); 1873var focused = AccessibilityObject.GetFocused();
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyGridAccessibleObject.cs (1)
190internal override IRawElementProviderFragment.Interface? GetFocus() => GetFocused();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.PropertyGridToolStripButtonAccessibleObject.cs (1)
55: _owningPropertyGridToolStripButton._owningPropertyGrid.GridViewAccessibleObject.GetFocused();
System\Windows\Forms\Controls\ToolStrips\StatusStrip.StatusStripAccessibleObject.cs (1)
22=> this.IsOwnerHandleCreated(out StatusStrip? _) ? GetFocused() : null;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (2)
97=> (State & AccessibleStates.Focused) != 0 ? this : base.GetFocused(); 100=> (State & AccessibleStates.Selected) != 0 ? this : base.GetFocused();
System.Windows.Forms.Tests (22)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (13)
91Assert.Null(accessibleObject.GetFocused()); 105.Setup(a => a.GetFocused()) 107Assert.Null(mockAccessibleObject.Object.GetFocused()); 121.Setup(a => a.GetFocused()) 123Assert.Same(mockAccessibleObject.Object, mockAccessibleObject.Object.GetFocused()); 145.Setup(a => a.GetFocused()) 147Assert.Null(mockAccessibleObject.Object.GetFocused()); 182.Setup(a => a.GetFocused()) 184Assert.Same(mockAccessibleObjectChild1.Object, mockAccessibleObject.Object.GetFocused()); 924.Setup(a => a.GetFocused()) 929mockAccessibleObject.Verify(a => a.GetFocused(), Times.Once()); 937.Setup(a => a.GetFocused()) 942mockAccessibleObject.Verify(a => a.GetFocused(), Times.Once());
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
908Assert.Null(accessibleObject.GetFocused());
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (1)
213AccessibleObject focusedCell = dataGridView.AccessibilityObject.GetFocused();
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (1)
294Assert.Throws<InvalidOperationException>(accessibleObject.GetFocused);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (2)
89Assert.Equal(currentCell.AccessibilityObject, accessibleObject.GetFocused()); 107Assert.Null(accessibleObject.GetFocused());
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (2)
92Assert.Equal(currentCell.AccessibilityObject, accessibleObject.GetFocused()); 110Assert.Null(accessibleObject.GetFocused());
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (1)
300var focusedObject = accessibleObject.GetFocused();
System\Windows\Forms\MonthCalendarTests.cs (1)
4263var result = accessibleObject.GetFocused();
System.Windows.Forms.UI.IntegrationTests (1)
NumericUpDownTests.cs (1)
28var focused = accessibleObject.GetFocused();