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