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