8 overrides of GetSelected
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
151
public override AccessibleObject
GetSelected
() => SelectedCellsAccessibilityObject;
System\Windows\Forms\Controls\DataGridView\DataGridView.SelectedCellsAccessibleObject.cs (1)
45
public override AccessibleObject
GetSelected
() => this;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
434
public override AccessibleObject?
GetSelected
() => null;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
304
public override AccessibleObject
GetSelected
() => SelectedCellsAccessibilityObject;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (1)
82
public override AccessibleObject
GetSelected
() => this;
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
233
public override AccessibleObject?
GetSelected
()
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
420
public override AccessibleObject?
GetSelected
()
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
99
public override AccessibleObject?
GetSelected
()
26 references to GetSelected
System.Windows.Forms (4)
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
1279
if (
GetSelected
() is not IRawElementProviderSimple.Interface selected)
2338
AccessibleObject? obj =
GetSelected
();
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1874
if (focused == AccessibilityObject.
GetSelected
())
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
114
=> this.IsOwnerHandleCreated(out TreeView? _) &&
GetSelected
() is IRawElementProviderSimple.Interface selected
System.Windows.Forms.Tests (22)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (13)
200
Assert.Null(accessibleObject.
GetSelected
());
214
.Setup(a => a.
GetSelected
())
216
Assert.Null(mockAccessibleObject.Object.
GetSelected
());
230
.Setup(a => a.
GetSelected
())
232
Assert.Same(mockAccessibleObject.Object, mockAccessibleObject.Object.
GetSelected
());
254
.Setup(a => a.
GetSelected
())
256
Assert.Null(mockAccessibleObject.Object.
GetSelected
());
291
.Setup(a => a.
GetSelected
())
293
Assert.Same(mockAccessibleObjectChild1.Object, mockAccessibleObject.Object.
GetSelected
());
1389
.Setup(a => a.
GetSelected
())
1394
mockAccessibleObject.Verify(a => a.
GetSelected
(), Times.Once());
1402
.Setup(a => a.
GetSelected
())
1407
mockAccessibleObject.Verify(a => a.
GetSelected
(), Times.Once());
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
982
Assert.Null(accessibleObject.
GetSelected
());
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (1)
325
Assert.Throws<InvalidOperationException>(accessibleObject.
GetSelected
);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (1)
71
Assert.Equal(accessibleObject, accessibleObject.
GetSelected
());
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (1)
74
Assert.Equal(accessibleObject, accessibleObject.
GetSelected
());
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (5)
260
accessibleObject.
GetSelected
().Should().BeNull();
263
accessibleObject.
GetSelected
().Should().Be(accessibleObject.GetChild(0));
266
accessibleObject.
GetSelected
().Should().Be(accessibleObject.GetChild(1));
269
accessibleObject.
GetSelected
().Should().BeNull();
331
var selectedObject = accessibleObject.
GetSelected
();