11 overrides of GetFocused
System.Windows.Forms (10)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (1)
140
public override AccessibleObject?
GetFocused
()
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
139
public override AccessibleObject?
GetFocused
()
System\Windows\Forms\Controls\DataGridView\DataGridView.SelectedCellsAccessibleObject.cs (1)
47
public override AccessibleObject?
GetFocused
() =>
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
432
public override AccessibleObject?
GetFocused
() => null;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
306
public override AccessibleObject?
GetFocused
()
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (1)
84
public override AccessibleObject?
GetFocused
()
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
219
public override AccessibleObject?
GetFocused
()
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
383
public override AccessibleObject?
GetFocused
() => _focusedCellAccessibleObject;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
245
public override AccessibleObject?
GetFocused
()
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
404
public override AccessibleObject?
GetFocused
()
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
96
public override AccessibleObject?
GetFocused
()
33 references to GetFocused
System.Windows.Forms (8)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
2052
private AccessibleObject? GetFocusedObject() => IsClientObject ?
GetFocused
() : null;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (4)
1396
if (_focusedItem == AccessibilityObject.
GetFocused
())
1401
_focusedItem = AccessibilityObject.
GetFocused
();
1710
AccessibleObject? item = AccessibilityObject.
GetFocused
();
1873
var focused = AccessibilityObject.
GetFocused
();
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyGridAccessibleObject.cs (1)
190
internal 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)
91
Assert.Null(accessibleObject.
GetFocused
());
105
.Setup(a => a.
GetFocused
())
107
Assert.Null(mockAccessibleObject.Object.
GetFocused
());
121
.Setup(a => a.
GetFocused
())
123
Assert.Same(mockAccessibleObject.Object, mockAccessibleObject.Object.
GetFocused
());
145
.Setup(a => a.
GetFocused
())
147
Assert.Null(mockAccessibleObject.Object.
GetFocused
());
182
.Setup(a => a.
GetFocused
())
184
Assert.Same(mockAccessibleObjectChild1.Object, mockAccessibleObject.Object.
GetFocused
());
924
.Setup(a => a.
GetFocused
())
929
mockAccessibleObject.Verify(a => a.
GetFocused
(), Times.Once());
937
.Setup(a => a.
GetFocused
())
942
mockAccessibleObject.Verify(a => a.
GetFocused
(), Times.Once());
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
908
Assert.Null(accessibleObject.
GetFocused
());
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (1)
213
AccessibleObject focusedCell = dataGridView.AccessibilityObject.
GetFocused
();
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (1)
294
Assert.Throws<InvalidOperationException>(accessibleObject.
GetFocused
);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (2)
89
Assert.Equal(currentCell.AccessibilityObject, accessibleObject.
GetFocused
());
107
Assert.Null(accessibleObject.
GetFocused
());
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (2)
92
Assert.Equal(currentCell.AccessibilityObject, accessibleObject.
GetFocused
());
110
Assert.Null(accessibleObject.
GetFocused
());
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (1)
300
var focusedObject = accessibleObject.
GetFocused
();
System\Windows\Forms\MonthCalendarTests.cs (1)
4263
var result = accessibleObject.
GetFocused
();
System.Windows.Forms.UI.IntegrationTests (1)
NumericUpDownTests.cs (1)
28
var focused = accessibleObject.
GetFocused
();