4 overrides of KeyboardShortcut
System.Windows.Forms (4)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
292
public override string?
KeyboardShortcut
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (1)
90
public override string?
KeyboardShortcut
=> GetKeyboardShortcutInternal((VARIANT)GetChildId()).ToNullableStringAndFree();
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (1)
114
public override string?
KeyboardShortcut
=> GetKeyboardShortcutInternal((VARIANT)GetChildId()).ToNullableStringAndFree();
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
70
public override string
KeyboardShortcut
34 references to KeyboardShortcut
System.Windows.Forms (7)
System\Windows\Forms\Accessibility\AccessibleObject.cs (5)
214
/// Determines if <see cref="GetKeyboardShortcutInternal(VARIANT)"/> can be called without calling <see cref="
KeyboardShortcut
"/>
615
UIA_PROPERTY_ID.UIA_AccessKeyPropertyId => (VARIANT)(
KeyboardShortcut
?? string.Empty),
1268
*pszKeyboardShortcut = new(
KeyboardShortcut
);
2170
: new(
KeyboardShortcut
);
2180
: new(child.
KeyboardShortcut
);
System\Windows\Forms\Controls\DataGridView\DataGridView.DataGridViewEditingPanelAccessibleObject.cs (1)
77
UIA_PROPERTY_ID.UIA_AccessKeyPropertyId => this.TryGetOwnerAs(out Panel? owner) && owner.AccessibilityObject.
KeyboardShortcut
is { } shortcut
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.UpDownEditAccessibleObject.cs (1)
38
public override string? KeyboardShortcut => _parent.AccessibilityObject.
KeyboardShortcut
;
System.Windows.Forms.Tests (27)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (17)
25
Assert.Null(accessibleObject.
KeyboardShortcut
);
620
Assert.Null(accessibleObject.
KeyboardShortcut
);
639
Assert.Null(accessibleObject.
KeyboardShortcut
);
660
Assert.Null(accessibleObject.
KeyboardShortcut
);
686
Assert.Null(accessibleObject.
KeyboardShortcut
);
705
Assert.Null(accessibleObject.
KeyboardShortcut
);
724
Assert.Null(accessibleObject.
KeyboardShortcut
);
743
Assert.Null(accessibleObject.
KeyboardShortcut
);
764
Assert.Null(accessibleObject.
KeyboardShortcut
);
785
Assert.Null(accessibleObject.
KeyboardShortcut
);
806
Assert.Null(accessibleObject.
KeyboardShortcut
);
1941
.Setup(a => a.
KeyboardShortcut
)
1946
mockAccessibleObject.Verify(a => a.
KeyboardShortcut
, Times.Once());
1963
.Setup(a => a.
KeyboardShortcut
)
1971
.Setup(a => a.
KeyboardShortcut
)
1994
mockAccessibleObjectChild1.Verify(a => a.
KeyboardShortcut
, Times.Exactly(child1CallCount));
1995
mockAccessibleObjectChild2.Verify(a => a.
KeyboardShortcut
, Times.Exactly(child2CallCount));
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (6)
1666
Assert.Equal("Alt+c", accessibleObject.
KeyboardShortcut
);
1670
Assert.Null(accessibleObject.
KeyboardShortcut
);
1683
Assert.Equal("Alt+l", accessibleObject.
KeyboardShortcut
);
1687
Assert.Null(accessibleObject.
KeyboardShortcut
);
1691
Assert.Equal("Alt+c", accessibleObject.
KeyboardShortcut
);
1696
Assert.Equal("Alt+l", accessibleObject.
KeyboardShortcut
);
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (2)
368
string keyboardShortcut = dateTimePicker1.AccessibilityObject.
KeyboardShortcut
;
372
keyboardShortcut = dateTimePicker2.AccessibilityObject.
KeyboardShortcut
;
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownEdit.UpDownEditAccessibleObjectTests.cs (2)
99
Assert.Equal(upDown.AccessibilityObject.
KeyboardShortcut
, accessibleObject.
KeyboardShortcut
);