2 overrides of DisplayName
DesignSurface (1)
CustomControls\DesignerActionVerbItem.cs (1)
21
public override string
DisplayName
=> _targetVerb.Text;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DesignerActionVerbItem.cs (1)
18
public override string
DisplayName
=> _targetVerb.Text;
1 write to DisplayName
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionItem.cs (1)
21
DisplayName
= 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)
76
ActionPanel.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
);
150
EditControl.AccessibleName = StripAmpersands(PropertyItem.
DisplayName
);
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
67
_label.Text = StripAmpersands(_textItem.
DisplayName
);
System\ComponentModel\Design\MenuCommandService.cs (1)
236
DesignerVerb verb = new(dami.
DisplayName
!, handler);
System.Windows.Forms.Design.Tests (28)
System\ComponentModel\Design\DesignerActionHeaderItemTests.cs (2)
18
Assert.Equal(expectedDisplayName, item.
DisplayName
);
36
Assert.Equal(expectedDisplayName, item.
DisplayName
);
System\ComponentModel\Design\DesignerActionItemTests.cs (1)
18
Assert.Equal(expectedDisplayName, item.
DisplayName
);
System\ComponentModel\Design\DesignerActionListTests.cs (8)
74
Assert.Equal("DisplayName", item1.
DisplayName
);
80
Assert.Equal("DisplayName", item2.
DisplayName
);
86
Assert.Equal("EmptyAnnotatedMethod", item3.
DisplayName
);
92
Assert.Equal("EmptyAnnotatedProperty", item4.
DisplayName
);
98
Assert.Equal("NullAnnotatedMethod", item5.
DisplayName
);
104
Assert.Equal("NullAnnotatedProperty", item6.
DisplayName
);
110
Assert.Equal("PublicMethod", item7.
DisplayName
);
116
Assert.Equal("PublicProperty", item8.
DisplayName
);
System\ComponentModel\Design\DesignerActionMethodItemTests.cs (6)
25
Assert.Equal(expectedDisplayName, item.
DisplayName
);
51
Assert.Equal(expectedDisplayName, item.
DisplayName
);
77
Assert.Equal(expectedDisplayName, item.
DisplayName
);
103
Assert.Equal(expectedDisplayName, item.
DisplayName
);
129
Assert.Equal(expectedDisplayName, item.
DisplayName
);
155
Assert.Equal(expectedDisplayName, item.
DisplayName
);
System\ComponentModel\Design\DesignerActionPropertyItemTests.cs (3)
19
Assert.Equal(expectedDisplayName, item.
DisplayName
);
39
Assert.Equal(expectedDisplayName, item.
DisplayName
);
59
Assert.Equal(expectedDisplayName, item.
DisplayName
);
System\ComponentModel\Design\DesignerActionServiceTests.cs (1)
510
Assert.Empty(actionItem.
DisplayName
);
System\ComponentModel\Design\DesignerActionTextItemTests.cs (1)
18
Assert.Equal(expectedDisplayName, item.
DisplayName
);
System\Windows\Forms\Design\ImageListActionListTests.cs (3)
74
items[0].
DisplayName
.Should().Be(SR.ImageListActionList_ImageSizeDisplayName);
79
items[1].
DisplayName
.Should().Be(SR.ImageListActionList_ColorDepthDisplayName);
84
items[2].
DisplayName
.Should().Be(SR.ImageListActionList_ChooseImagesDisplayName);
System\Windows\Forms\Design\ListViewActionListTests.cs (3)
72
i.
DisplayName
== SR.ListViewActionListEditItemsDisplayName ||
73
i.
DisplayName
== SR.ListViewActionListEditColumnsDisplayName ||
74
i.
DisplayName
== SR.ListViewActionListEditGroupsDisplayName