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)
62Assert.Null(accessibleObject.KeyboardShortcut); 97Assert.Null(accessibleObject.KeyboardShortcut); 335Assert.Equal(expected, accessibleObject.KeyboardShortcut); 350Assert.Equal(expected, accessibleObject.KeyboardShortcut); 365Assert.Equal(expected, accessibleObject.KeyboardShortcut); 435Assert.Equal(expected, accessibleObject.KeyboardShortcut); 460Assert.Equal(expected, accessibleObject.KeyboardShortcut); 484Assert.Equal(expected, accessibleObject.KeyboardShortcut);
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (2)
28Assert.Null(accessibilityObject.KeyboardShortcut); 53Assert.Null(accessibilityObject.KeyboardShortcut);
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (1)
701Assert.Equal(expectedKeyboardShortcut, accessibleObject.KeyboardShortcut);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
457Assert.Equal(expectedKeyboardShortcut, accessibleObject.KeyboardShortcut);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (2)
31Assert.Null(accessibilityObject.KeyboardShortcut); 54Assert.Null(accessibilityObject.KeyboardShortcut);