11 writes to UseMnemonic
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
39
UseMnemonic
= false,
System.Windows.Forms.Design (6)
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
27
UseMnemonic
= false,
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (2)
28
UseMnemonic
= false
36
UseMnemonic
= false
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (2)
29
UseMnemonic
= false
38
UseMnemonic
= false,
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
25
UseMnemonic
= false,
System.Windows.Forms.Tests (4)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (2)
1685
label.
UseMnemonic
= false;
1694
label.
UseMnemonic
= true;
System\Windows\Forms\AccessibleObjects\LabelAccessibleObjectTests.cs (2)
150
using Label label = new() { Text = text,
UseMnemonic
= useMnemonic };
175
using Label label = new() { Text = labelText,
UseMnemonic
= useMnemonic };
15 references to UseMnemonic
System.Windows.Forms (10)
System\Windows\Forms\Controls\Buttons\ButtonBase.ButtonBaseAccessibleObject.cs (1)
34
if ((!useMnemonic || !WindowsFormsUtils.ContainsMnemonic(control.Text)) && previousLabel is not null && previousLabel.
UseMnemonic
)
System\Windows\Forms\Controls\Labels\Label.cs (6)
301
if (!
UseMnemonic
)
778
if (
UseMnemonic
== value)
797
if (!
UseMnemonic
)
911
=> ControlPaint.CreateStringFormat(this, TextAlign, AutoEllipsis,
UseMnemonic
);
926
TextFormatFlags flags = ControlPaint.CreateTextFormatFlags(this, TextAlign, AutoEllipsis,
UseMnemonic
);
1362
if (
UseMnemonic
&& IsMnemonic(charCode, Text) && CanProcessMnemonic())
System\Windows\Forms\Controls\Labels\Label.LabelAccessibleObject.cs (2)
16
public override string? KeyboardShortcut => !this.TryGetOwnerAs(out Label? owner) || !owner.
UseMnemonic
? null : base.KeyboardShortcut;
34
return owner.
UseMnemonic
? WindowsFormsUtils.TextWithoutMnemonics(TextLabel) : TextLabel;
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
120
return _owningLinkLabel.
UseMnemonic
? name = WindowsFormsUtils.TextWithoutMnemonics(name) : name;
System.Windows.Forms.Tests (5)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (4)
1668
control.GetType().GetProperty(nameof(Label.
UseMnemonic
)).SetValue(control, false);
1689
control.GetType().GetProperty(nameof(Label.
UseMnemonic
)).SetValue(control, true);
1711
control.GetType().GetProperty(nameof(Label.
UseMnemonic
)).SetValue(control, false);
1719
control.GetType().GetProperty(nameof(Label.
UseMnemonic
)).SetValue(control, true);
System\Windows\Forms\LabelTests.cs (1)
109
Assert.True(control.
UseMnemonic
);