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)
46
public override string?
KeyboardShortcut
=> this.TryGetOwnerAs(out ButtonBase? owner)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (1)
17
public override string?
KeyboardShortcut
System\Windows\Forms\Controls\Labels\Label.LabelAccessibleObject.cs (1)
16
public override string?
KeyboardShortcut
=> !this.TryGetOwnerAs(out Label? owner) || !owner.UseMnemonic ? null : base.KeyboardShortcut;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseAccessibleObject.cs (1)
121
public 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)
16
public 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)
75
Assert.Null(accessibleObject.
KeyboardShortcut
);
110
Assert.Null(accessibleObject.
KeyboardShortcut
);
348
Assert.Equal(expected, accessibleObject.
KeyboardShortcut
);
363
Assert.Equal(expected, accessibleObject.
KeyboardShortcut
);
378
Assert.Equal(expected, accessibleObject.
KeyboardShortcut
);
448
Assert.Equal(expected, accessibleObject.
KeyboardShortcut
);
473
Assert.Equal(expected, accessibleObject.
KeyboardShortcut
);
497
Assert.Equal(expected, accessibleObject.
KeyboardShortcut
);
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (2)
30
Assert.Null(accessibilityObject.
KeyboardShortcut
);
55
Assert.Null(accessibilityObject.
KeyboardShortcut
);
System\Windows\Forms\AccessibleObjects\TabControl.TabControlAccessibleObjectTests.cs (1)
703
Assert.Equal(expectedKeyboardShortcut, accessibleObject.
KeyboardShortcut
);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
459
Assert.Equal(expectedKeyboardShortcut, accessibleObject.
KeyboardShortcut
);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (2)
33
Assert.Null(accessibilityObject.
KeyboardShortcut
);
56
Assert.Null(accessibilityObject.
KeyboardShortcut
);