22 writes to UseMnemonic
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
23
UseMnemonic
= false,
System.Windows.Forms.Tests (21)
System\Windows\Forms\AccessibleObjects\RadioButton.RadioButtonAccessibleObjectTests.cs (2)
102
using RadioButton radioButton = new() { Text = "&TestText",
UseMnemonic
= useMnemonic };
113
using RadioButton radioButton = new() { Text = "&RadioButton",
UseMnemonic
= useMnemonic };
System\Windows\Forms\ButtonBaseTests.cs (12)
3939
control.
UseMnemonic
= value;
3945
control.
UseMnemonic
= value;
3951
control.
UseMnemonic
= !value;
3990
control.
UseMnemonic
= value;
3998
control.
UseMnemonic
= value;
4006
control.
UseMnemonic
= !value;
4046
control.
UseMnemonic
= value;
4055
control.
UseMnemonic
= value;
4064
control.
UseMnemonic
= !value;
4114
control.
UseMnemonic
= value;
4125
control.
UseMnemonic
= value;
4136
control.
UseMnemonic
= !value;
System\Windows\Forms\ButtonTests.cs (2)
3265
UseMnemonic
= useMnemonic,
3300
UseMnemonic
= useMnemonic,
System\Windows\Forms\CheckBoxTests.cs (1)
848
UseMnemonic
= useMnemonic,
System\Windows\Forms\RadioButtonTests.cs (4)
1355
UseMnemonic
= useMnemonic,
1384
UseMnemonic
= useMnemonic,
1414
UseMnemonic
= useMnemonic,
1454
UseMnemonic
= useMnemonic,
27 references to UseMnemonic
System.Windows.Forms (10)
System\Windows\Forms\Controls\Buttons\Button.cs (1)
283
if (
UseMnemonic
&& CanProcessMnemonic() && IsMnemonic(charCode, Text))
System\Windows\Forms\Controls\Buttons\ButtonBase.ButtonBaseAccessibleObject.cs (2)
47
? GetKeyboardShortcut(owner, owner.
UseMnemonic
, PreviousLabel)
64
return owner.
UseMnemonic
? WindowsFormsUtils.TextWithoutMnemonics(TextLabel) : TextLabel;
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
733
if (value ==
UseMnemonic
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
89
=> ControlPaint.CreateStringFormat(Control, Control.TextAlign, Control.ShowToolTip, Control.
UseMnemonic
);
95
=> ControlPaint.CreateTextFormatFlags(Control, Control.TextAlign, Control.ShowToolTip, Control.
UseMnemonic
);
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
520
if (
UseMnemonic
&& IsMnemonic(charCode, Text) && CanSelect)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
504
if (
UseMnemonic
&& IsMnemonic(charCode, Text) && CanSelect)
System\Windows\Forms\Controls\Buttons\RadioButton.RadioButtonAccessibleObject.cs (2)
54
? ButtonBaseAccessibleObject.GetKeyboardShortcut(owner, owner.
UseMnemonic
, PreviousLabel)
71
return owner.
UseMnemonic
? WindowsFormsUtils.TextWithoutMnemonics(TextLabel) : TextLabel;
System.Windows.Forms.Design (1)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
222
if (!
UseMnemonic
)
System.Windows.Forms.Tests (16)
System\Windows\Forms\ButtonBaseTests.cs (13)
116
Assert.True(control.
UseMnemonic
);
3940
Assert.Equal(value, control.
UseMnemonic
);
3946
Assert.Equal(value, control.
UseMnemonic
);
3952
Assert.Equal(!value, control.
UseMnemonic
);
3991
Assert.Equal(value, control.
UseMnemonic
);
3999
Assert.Equal(value, control.
UseMnemonic
);
4007
Assert.Equal(!value, control.
UseMnemonic
);
4047
Assert.Equal(value, control.
UseMnemonic
);
4056
Assert.Equal(value, control.
UseMnemonic
);
4065
Assert.Equal(!value, control.
UseMnemonic
);
4115
Assert.Equal(value, control.
UseMnemonic
);
4126
Assert.Equal(value, control.
UseMnemonic
);
4137
Assert.Equal(!value, control.
UseMnemonic
);
System\Windows\Forms\ButtonTests.cs (1)
114
Assert.True(control.
UseMnemonic
);
System\Windows\Forms\CheckBoxTests.cs (1)
116
Assert.True(control.
UseMnemonic
);
System\Windows\Forms\RadioButtonTests.cs (1)
114
Assert.True(control.
UseMnemonic
);