122 references to AccessibleSelection
System.Windows.Forms (67)
System\Windows\Forms\Accessibility\AccessibleObject.cs (4)
1132
Select((
AccessibleSelection
)flagsSelect);
1796
Select((
AccessibleSelection
)flagsSelect); // Uses an Enum which matches SELFLAG
1804
child.Select((
AccessibleSelection
)flagsSelect);
2647
public virtual void Select(
AccessibleSelection
flags)
System\Windows\Forms\Accessibility\AccessibleObjectExtensions.cs (2)
275
public static void TrySelect(this AgileComPointer<IAccessible>? agile,
AccessibleSelection
flags, int child)
278
public static void TrySelect(this AgileComPointer<IAccessible>? agile,
AccessibleSelection
flags, VARIANT child)
System\Windows\Forms\Accessibility\AccessibleStates.cs (5)
170
/// combining this flag with <see cref="
AccessibleSelection
.AddSelection"/>
171
/// or <see cref="
AccessibleSelection
.RemoveSelection"/>. This flag does
173
/// <see cref="
AccessibleSelection
.TakeFocus"/>. The behavior of
174
/// <see cref="ExtSelectable"/>|<see cref="
AccessibleSelection
.TakeFocus"/>
177
/// This flag may not be combined with <see cref="
AccessibleSelection
.TakeSelection"/>.
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (13)
280
Select(
AccessibleSelection
.TakeFocus |
AccessibleSelection
.TakeSelection);
565
public override void Select(
AccessibleSelection
flags)
577
if ((flags &
AccessibleSelection
.TakeFocus) ==
AccessibleSelection
.TakeFocus)
582
if ((flags &
AccessibleSelection
.TakeSelection) ==
AccessibleSelection
.TakeSelection)
588
if ((flags &
AccessibleSelection
.AddSelection) ==
AccessibleSelection
.AddSelection)
594
if ((flags &
AccessibleSelection
.RemoveSelection) ==
AccessibleSelection
.RemoveSelection &&
595
(flags & (
AccessibleSelection
.AddSelection |
AccessibleSelection
.TakeSelection)) == 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (7)
200
public override void Select(
AccessibleSelection
flags)
218
if ((flags &
AccessibleSelection
.TakeFocus) ==
AccessibleSelection
.TakeFocus)
227
if ((flags & (
AccessibleSelection
.TakeSelection |
AccessibleSelection
.AddSelection)) != 0)
231
else if ((flags &
AccessibleSelection
.RemoveSelection) ==
AccessibleSelection
.RemoveSelection)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (12)
397
public override void Select(
AccessibleSelection
flags)
411
if ((flags &
AccessibleSelection
.TakeFocus) ==
AccessibleSelection
.TakeFocus)
416
if ((flags &
AccessibleSelection
.TakeSelection) ==
AccessibleSelection
.TakeSelection)
435
if ((flags &
AccessibleSelection
.AddSelection) ==
AccessibleSelection
.AddSelection && (flags &
AccessibleSelection
.TakeSelection) == 0)
443
if ((flags &
AccessibleSelection
.RemoveSelection) ==
AccessibleSelection
.RemoveSelection &&
444
(flags & (
AccessibleSelection
.AddSelection |
AccessibleSelection
.TakeSelection)) == 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (7)
205
public override void Select(
AccessibleSelection
flags)
223
if ((flags &
AccessibleSelection
.TakeFocus) ==
AccessibleSelection
.TakeFocus)
232
if ((flags & (
AccessibleSelection
.TakeSelection |
AccessibleSelection
.AddSelection)) != 0)
236
else if ((flags &
AccessibleSelection
.RemoveSelection) ==
AccessibleSelection
.RemoveSelection)
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (8)
191
public override void Select(
AccessibleSelection
flags)
204
if ((flags &
AccessibleSelection
.TakeFocus) ==
AccessibleSelection
.TakeFocus)
228
if ((flags &
AccessibleSelection
.AddSelection) ==
AccessibleSelection
.AddSelection)
238
if ((flags &
AccessibleSelection
.RemoveSelection) ==
AccessibleSelection
.RemoveSelection &&
239
(flags &
AccessibleSelection
.AddSelection) == 0)
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
268
public override void Select(
AccessibleSelection
flags)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
284
public override void Select(
AccessibleSelection
flags)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (1)
188
public override void Select(
AccessibleSelection
flags)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (6)
18
private delegate void SelectDelegate(
AccessibleSelection
flags);
281
public override void Select(
AccessibleSelection
flags)
296
if ((flags &
AccessibleSelection
.TakeFocus) ==
AccessibleSelection
.TakeFocus)
302
if ((flags &
AccessibleSelection
.TakeSelection) ==
AccessibleSelection
.TakeSelection)
System.Windows.Forms.Tests (55)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (17)
532
[EnumData<
AccessibleSelection
>]
533
[InvalidEnumData<
AccessibleSelection
>]
534
public void AccessibleObject_Navigate_InvokeDefault_Nop(
AccessibleSelection
flags)
1302
[InlineData((int)
AccessibleSelection
.AddSelection, 0)]
1303
[InlineData((int)
AccessibleSelection
.AddSelection, unchecked((int)0x80020004))]
1304
[InlineData((int)
AccessibleSelection
.AddSelection, "abc")]
1305
[InlineData((int)
AccessibleSelection
.AddSelection, null)]
1310
.Setup(a => a.Select((
AccessibleSelection
)flagsSelect))
1314
mockAccessibleObject.Verify(a => a.Select((
AccessibleSelection
)flagsSelect), Times.Once());
1318
[InlineData((int)
AccessibleSelection
.AddSelection, 2, 1, 0)]
1319
[InlineData((int)
AccessibleSelection
.AddSelection, 3, 0, 1)]
1324
.Setup(a => a.Select((
AccessibleSelection
)flagsSelect))
1328
.Setup(a => a.Select((
AccessibleSelection
)flagsSelect))
1347
mockAccessibleObjectChild1.Verify(a => a.Select((
AccessibleSelection
)flagsSelect), Times.Exactly(child1CallCount));
1348
mockAccessibleObjectChild2.Verify(a => a.Select((
AccessibleSelection
)flagsSelect), Times.Exactly(child2CallCount));
1352
[InlineData((int)
AccessibleSelection
.AddSelection, -1)]
1353
[InlineData((int)
AccessibleSelection
.AddSelection, 4)]
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (17)
448
[InlineData(
AccessibleSelection
.None)]
449
[InlineData(
AccessibleSelection
.RemoveSelection)]
450
public void DataGridViewCellAccessibleObject_Select_NothingToDo_Nop(
AccessibleSelection
flags)
461
Assert.Throws<InvalidOperationException>(() => accessibleObject.Select(
AccessibleSelection
.None));
480
accessibleObject.Select(
AccessibleSelection
.None);
489
accessibleObject.Select(
AccessibleSelection
.None);
519
accessibleObject.Select((
AccessibleSelection
)128 |
AccessibleSelection
.TakeFocus);
555
accessibleObject.Select((
AccessibleSelection
)128 |
AccessibleSelection
.TakeSelection);
593
accessibleObject.Select((
AccessibleSelection
)128 |
AccessibleSelection
.AddSelection);
628
accessibleObject.Select(
AccessibleSelection
.AddSelection |
AccessibleSelection
.RemoveSelection);
630
accessibleObject.Select(
AccessibleSelection
.TakeSelection |
AccessibleSelection
.RemoveSelection);
632
accessibleObject.Select(
AccessibleSelection
.RemoveSelection);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (11)
366
[InlineData(
AccessibleSelection
.None)]
367
[InlineData(
AccessibleSelection
.TakeSelection)]
368
[InlineData(
AccessibleSelection
.AddSelection)]
369
[InlineData(
AccessibleSelection
.AddSelection |
AccessibleSelection
.RemoveSelection)]
370
[InlineData(
AccessibleSelection
.TakeSelection |
AccessibleSelection
.RemoveSelection)]
371
[InlineData(
AccessibleSelection
.RemoveSelection)]
372
[InlineData(
AccessibleSelection
.TakeFocus)]
373
public void DataGridViewRowAccessibleObject_Select_NoDataGridView_Nop(
AccessibleSelection
flags)
385
Assert.Throws<InvalidOperationException>(() => accessibleObject.Select(
AccessibleSelection
.None));
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (5)
185
[InlineData(
AccessibleSelection
.AddSelection)]
186
[InlineData(
AccessibleSelection
.RemoveSelection)]
187
[InlineData(
AccessibleSelection
.TakeFocus)]
188
[InlineData((
AccessibleSelection
)int.MaxValue)]
189
public void Select_WithVariousFlags_ShouldNotThrow(
AccessibleSelection
flags)
System\Windows\Forms\MonthCalendarTests.cs (5)
4388
cellAccessibleObject.Select(
AccessibleSelection
.TakeSelection);
4425
[InlineData(
AccessibleSelection
.AddSelection)]
4426
[InlineData(
AccessibleSelection
.RemoveSelection)]
4427
[InlineData(
AccessibleSelection
.TakeSelection)]
4428
public void CalendarCellAccessibleObject_Select_Invoke_SetsSelectionRange(
AccessibleSelection
selectionFlag)