2 overrides of DisplayName
DesignSurface (1)
CustomControls\DesignerActionVerbItem.cs (1)
21public override string DisplayName => _targetVerb.Text;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignerActionVerbItem.cs (1)
18public override string DisplayName => _targetVerb.Text;
1 write to DisplayName
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionItem.cs (1)
21DisplayName = displayName is null ? null : SanitizeNameRegex().Replace(displayName, "");
36 references to DisplayName
System.Windows.Forms.Design (8)
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
53_checkBox.Text = StripAmpersands(PropertyItem!.DisplayName);
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (2)
76ActionPanel.ShowError(string.Format(SR.DesignerActionPanel_ErrorInvokingAction, _methodItem!.DisplayName, Environment.NewLine + ex.Message)); 90_linkLabel.Text = StripAmpersands(_methodItem.DisplayName);
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
114_titleLabel.Text = _panelHeaderItem.DisplayName;
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (2)
127_label.Text = StripAmpersands(PropertyItem!.DisplayName); 150EditControl.AccessibleName = StripAmpersands(PropertyItem.DisplayName);
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
67_label.Text = StripAmpersands(_textItem.DisplayName);
System\ComponentModel\Design\MenuCommandService.cs (1)
236DesignerVerb verb = new(dami.DisplayName!, handler);
System.Windows.Forms.Design.Tests (28)
System\ComponentModel\Design\DesignerActionHeaderItemTests.cs (2)
18Assert.Equal(expectedDisplayName, item.DisplayName); 36Assert.Equal(expectedDisplayName, item.DisplayName);
System\ComponentModel\Design\DesignerActionItemTests.cs (1)
18Assert.Equal(expectedDisplayName, item.DisplayName);
System\ComponentModel\Design\DesignerActionListTests.cs (8)
74Assert.Equal("DisplayName", item1.DisplayName); 80Assert.Equal("DisplayName", item2.DisplayName); 86Assert.Equal("EmptyAnnotatedMethod", item3.DisplayName); 92Assert.Equal("EmptyAnnotatedProperty", item4.DisplayName); 98Assert.Equal("NullAnnotatedMethod", item5.DisplayName); 104Assert.Equal("NullAnnotatedProperty", item6.DisplayName); 110Assert.Equal("PublicMethod", item7.DisplayName); 116Assert.Equal("PublicProperty", item8.DisplayName);
System\ComponentModel\Design\DesignerActionMethodItemTests.cs (6)
25Assert.Equal(expectedDisplayName, item.DisplayName); 51Assert.Equal(expectedDisplayName, item.DisplayName); 77Assert.Equal(expectedDisplayName, item.DisplayName); 103Assert.Equal(expectedDisplayName, item.DisplayName); 129Assert.Equal(expectedDisplayName, item.DisplayName); 155Assert.Equal(expectedDisplayName, item.DisplayName);
System\ComponentModel\Design\DesignerActionPropertyItemTests.cs (3)
19Assert.Equal(expectedDisplayName, item.DisplayName); 39Assert.Equal(expectedDisplayName, item.DisplayName); 59Assert.Equal(expectedDisplayName, item.DisplayName);
System\ComponentModel\Design\DesignerActionServiceTests.cs (1)
510Assert.Empty(actionItem.DisplayName);
System\ComponentModel\Design\DesignerActionTextItemTests.cs (1)
18Assert.Equal(expectedDisplayName, item.DisplayName);
System\Windows\Forms\Design\ImageListActionListTests.cs (3)
74items[0].DisplayName.Should().Be(SR.ImageListActionList_ImageSizeDisplayName); 79items[1].DisplayName.Should().Be(SR.ImageListActionList_ColorDepthDisplayName); 84items[2].DisplayName.Should().Be(SR.ImageListActionList_ChooseImagesDisplayName);
System\Windows\Forms\Design\ListViewActionListTests.cs (3)
72i.DisplayName == SR.ListViewActionListEditItemsDisplayName || 73i.DisplayName == SR.ListViewActionListEditColumnsDisplayName || 74i.DisplayName == SR.ListViewActionListEditGroupsDisplayName