Base:
property
KeyboardShortcut
System.Windows.Forms.AccessibleObject.KeyboardShortcut
4 overrides of KeyboardShortcut
System.Windows.Forms (4)
System\Windows\Forms\Controls\Buttons\ButtonBase.ButtonBaseAccessibleObject.cs (1)
46public override string? KeyboardShortcut => this.TryGetOwnerAs(out ButtonBase? owner)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (1)
17public override string? KeyboardShortcut
System\Windows\Forms\Controls\Labels\Label.LabelAccessibleObject.cs (1)
16public override string? KeyboardShortcut => !this.TryGetOwnerAs(out Label? owner) || !owner.UseMnemonic ? null : base.KeyboardShortcut;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseAccessibleObject.cs (1)
121public override string? KeyboardShortcut => this.TryGetOwnerAs(out TextBoxBase? owner)
15 references to KeyboardShortcut
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\Label.LabelAccessibleObject.cs (1)
16public override string? KeyboardShortcut => !this.TryGetOwnerAs(out Label? owner) || !owner.UseMnemonic ? null : base.KeyboardShortcut;
System.Windows.Forms.Tests (14)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (8)
75Assert.Null(accessibleObject.KeyboardShortcut); 110Assert.Null(accessibleObject.KeyboardShortcut); 348Assert.Equal(expected, accessibleObject.KeyboardShortcut); 363Assert.Equal(expected, accessibleObject.KeyboardShortcut); 378Assert.Equal(expected, accessibleObject.KeyboardShortcut); 448Assert.Equal(expected, accessibleObject.KeyboardShortcut); 473Assert.Equal(expected, accessibleObject.KeyboardShortcut); 497Assert.Equal(expected, accessibleObject.KeyboardShortcut);
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (2)
30Assert.Null(accessibilityObject.KeyboardShortcut); 55Assert.Null(accessibilityObject.KeyboardShortcut);
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (1)
703Assert.Equal(expectedKeyboardShortcut, accessibleObject.KeyboardShortcut);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
459Assert.Equal(expectedKeyboardShortcut, accessibleObject.KeyboardShortcut);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (2)
33Assert.Null(accessibilityObject.KeyboardShortcut); 56Assert.Null(accessibilityObject.KeyboardShortcut);