122 references to AccessibleSelection
System.Windows.Forms (67)
System\Windows\Forms\Accessibility\AccessibleObject.cs (4)
1132Select((AccessibleSelection)flagsSelect); 1796Select((AccessibleSelection)flagsSelect); // Uses an Enum which matches SELFLAG 1804child.Select((AccessibleSelection)flagsSelect); 2647public virtual void Select(AccessibleSelection flags)
System\Windows\Forms\Accessibility\AccessibleObjectExtensions.cs (2)
275public static void TrySelect(this AgileComPointer<IAccessible>? agile, AccessibleSelection flags, int child) 278public 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)
280Select(AccessibleSelection.TakeFocus | AccessibleSelection.TakeSelection); 565public override void Select(AccessibleSelection flags) 577if ((flags & AccessibleSelection.TakeFocus) == AccessibleSelection.TakeFocus) 582if ((flags & AccessibleSelection.TakeSelection) == AccessibleSelection.TakeSelection) 588if ((flags & AccessibleSelection.AddSelection) == AccessibleSelection.AddSelection) 594if ((flags & AccessibleSelection.RemoveSelection) == AccessibleSelection.RemoveSelection && 595(flags & (AccessibleSelection.AddSelection | AccessibleSelection.TakeSelection)) == 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (7)
200public override void Select(AccessibleSelection flags) 218if ((flags & AccessibleSelection.TakeFocus) == AccessibleSelection.TakeFocus) 227if ((flags & (AccessibleSelection.TakeSelection | AccessibleSelection.AddSelection)) != 0) 231else if ((flags & AccessibleSelection.RemoveSelection) == AccessibleSelection.RemoveSelection)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (12)
397public override void Select(AccessibleSelection flags) 411if ((flags & AccessibleSelection.TakeFocus) == AccessibleSelection.TakeFocus) 416if ((flags & AccessibleSelection.TakeSelection) == AccessibleSelection.TakeSelection) 435if ((flags & AccessibleSelection.AddSelection) == AccessibleSelection.AddSelection && (flags & AccessibleSelection.TakeSelection) == 0) 443if ((flags & AccessibleSelection.RemoveSelection) == AccessibleSelection.RemoveSelection && 444(flags & (AccessibleSelection.AddSelection | AccessibleSelection.TakeSelection)) == 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (7)
205public override void Select(AccessibleSelection flags) 223if ((flags & AccessibleSelection.TakeFocus) == AccessibleSelection.TakeFocus) 232if ((flags & (AccessibleSelection.TakeSelection | AccessibleSelection.AddSelection)) != 0) 236else if ((flags & AccessibleSelection.RemoveSelection) == AccessibleSelection.RemoveSelection)
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject.cs (8)
191public override void Select(AccessibleSelection flags) 204if ((flags & AccessibleSelection.TakeFocus) == AccessibleSelection.TakeFocus) 228if ((flags & AccessibleSelection.AddSelection) == AccessibleSelection.AddSelection) 238if ((flags & AccessibleSelection.RemoveSelection) == AccessibleSelection.RemoveSelection && 239(flags & AccessibleSelection.AddSelection) == 0)
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
268public override void Select(AccessibleSelection flags)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
284public override void Select(AccessibleSelection flags)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (1)
188public override void Select(AccessibleSelection flags)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (6)
18private delegate void SelectDelegate(AccessibleSelection flags); 281public override void Select(AccessibleSelection flags) 296if ((flags & AccessibleSelection.TakeFocus) == AccessibleSelection.TakeFocus) 302if ((flags & AccessibleSelection.TakeSelection) == AccessibleSelection.TakeSelection)
System.Windows.Forms.Tests (55)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (17)
532[EnumData<AccessibleSelection>] 533[InvalidEnumData<AccessibleSelection>] 534public 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)) 1314mockAccessibleObject.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)) 1347mockAccessibleObjectChild1.Verify(a => a.Select((AccessibleSelection)flagsSelect), Times.Exactly(child1CallCount)); 1348mockAccessibleObjectChild2.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)] 450public void DataGridViewCellAccessibleObject_Select_NothingToDo_Nop(AccessibleSelection flags) 461Assert.Throws<InvalidOperationException>(() => accessibleObject.Select(AccessibleSelection.None)); 480accessibleObject.Select(AccessibleSelection.None); 489accessibleObject.Select(AccessibleSelection.None); 519accessibleObject.Select((AccessibleSelection)128 | AccessibleSelection.TakeFocus); 555accessibleObject.Select((AccessibleSelection)128 | AccessibleSelection.TakeSelection); 593accessibleObject.Select((AccessibleSelection)128 | AccessibleSelection.AddSelection); 628accessibleObject.Select(AccessibleSelection.AddSelection | AccessibleSelection.RemoveSelection); 630accessibleObject.Select(AccessibleSelection.TakeSelection | AccessibleSelection.RemoveSelection); 632accessibleObject.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)] 373public void DataGridViewRowAccessibleObject_Select_NoDataGridView_Nop(AccessibleSelection flags) 385Assert.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)] 189public void Select_WithVariousFlags_ShouldNotThrow(AccessibleSelection flags)
System\Windows\Forms\MonthCalendarTests.cs (5)
4388cellAccessibleObject.Select(AccessibleSelection.TakeSelection); 4425[InlineData(AccessibleSelection.AddSelection)] 4426[InlineData(AccessibleSelection.RemoveSelection)] 4427[InlineData(AccessibleSelection.TakeSelection)] 4428public void CalendarCellAccessibleObject_Select_Invoke_SetsSelectionRange(AccessibleSelection selectionFlag)