81 writes to DisplayMember
Accessibility_Core_App (2)
DataBindingExample.cs (2)
36
listBox1.
DisplayMember
= nameof(Student.Name);
37
comboBox1.
DisplayMember
= nameof(Student.Name);
System.Windows.Forms (5)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
205
EditingComboBox.
DisplayMember
= value;
1293
comboBox.
DisplayMember
= DisplayMember;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
126
set => base.
DisplayMember
= value;
System\Windows\Forms\Controls\ListControl\ListControl.cs (2)
79
DisplayMember
= string.Empty;
84
DisplayMember
= string.Empty;
System.Windows.Forms.Tests (73)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
67
DisplayMember
= TestDataSources.PersonDisplayMember
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
26
DisplayMember
= TestDataSources.PersonDisplayMember,
System\Windows\Forms\Combobox.ObjectCollectionTests.cs (6)
153
DisplayMember
= TestDataSources.PersonDisplayMember
186
DisplayMember
= TestDataSources.PersonDisplayMember
309
DisplayMember
= TestDataSources.PersonDisplayMember
340
DisplayMember
= TestDataSources.PersonDisplayMember
702
DisplayMember
= TestDataSources.PersonDisplayMember
733
DisplayMember
= TestDataSources.PersonDisplayMember
System\Windows\Forms\ComboBoxTests.cs (3)
1349
DisplayMember
= "Value"
1506
DisplayMember
= "Value"
1613
DisplayMember
= "Value"
System\Windows\Forms\ListBoxTests.cs (2)
4950
DisplayMember
= "Value"
5054
DisplayMember
= "Value"
System\Windows\Forms\ListControlTests.cs (60)
222
DisplayMember
= "Value"
279
DisplayMember
= "Value"
610
DisplayMember
= "Capacity"
635
DisplayMember
= "Capacity"
659
DisplayMember
= "Count"
678
DisplayMember
= "Count"
697
DisplayMember
= "Count"
717
DisplayMember
= "Count"
742
DisplayMember
= "Count"
761
DisplayMember
= "Count"
780
DisplayMember
= "Count"
799
DisplayMember
= "Count"
818
DisplayMember
= "Count"
839
DisplayMember
= "Count"
934
DisplayMember
= "Value"
957
DisplayMember
= "NoSuchDisplayMember"
1074
DisplayMember
= value
1082
control.
DisplayMember
= value;
1095
DisplayMember
= "DataMember"
1098
control.
DisplayMember
= value;
1105
control.
DisplayMember
= value;
1122
control.
DisplayMember
= value;
1129
control.
DisplayMember
= value;
1146
control.
DisplayMember
= value;
1153
control.
DisplayMember
= value;
1172
control.
DisplayMember
= value;
1179
control.
DisplayMember
= value;
1201
control.
DisplayMember
= value;
1208
control.
DisplayMember
= value;
1228
control.
DisplayMember
= value;
1243
control.
DisplayMember
= value;
1280
control.
DisplayMember
= "Value1";
1286
control.
DisplayMember
= "Value1";
1292
control.
DisplayMember
= "Value2";
1298
control.
DisplayMember
= null;
1304
control.
DisplayMember
= string.Empty;
1312
control.
DisplayMember
= "Value1";
1325
control.
DisplayMember
= "Value2";
1330
control.
DisplayMember
= "Value1";
1709
DisplayMember
= "DisplayMember"
1814
DisplayMember
= "OtherValue"
1842
DisplayMember
= "Value"
2123
new SubListControl {
DisplayMember
= "Length" },
2129
new SubListControl {
DisplayMember
= "length" },
2135
new SubListControl {
DisplayMember
= "Path.Length" },
2141
new SubListControl {
DisplayMember
= "NoSuchProperty" },
2174
DisplayMember
= "Value"
2185
DisplayMember
= "Value"
2196
DisplayMember
= "value"
2207
DisplayMember
= "NoSuchProperty"
2351
DisplayMember
= "Length"
2360
DisplayMember
= "Value"
2369
DisplayMember
= "Value"
2402
DisplayMember
= "Value"
2444
DisplayMember
= "Value"
2479
DisplayMember
= "Value"
2496
DisplayMember
= "Value"
2512
DisplayMember
= "Value"
2529
DisplayMember
= "Value"
2546
DisplayMember
= "Value"
WinFormsControlsTest (1)
ComboBoxes.cs (1)
18
dataBoundComboBox.
DisplayMember
= TestDataSources.PersonDisplayMember;
93 references to DisplayMember
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2837
Debug.Assert(
DisplayMember
.Equals(string.Empty), "if this list is sorted it means that dataSource was null when Sorted first became true. at that point DisplayMember had to be String.Empty");
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
125
get => base.
DisplayMember
;
System\Windows\Forms\Controls\ListControl\ListControl.cs (2)
11
[LookupBindingProperties(nameof(DataSource), nameof(
DisplayMember
), nameof(ValueMember), nameof(SelectedValue))]
309
if (
DisplayMember
.Length == 0)
System.Windows.Forms.Tests (89)
System\Windows\Forms\ComboBoxTests.cs (3)
65
Assert.Empty(control.
DisplayMember
);
638
Assert.Empty(control.
DisplayMember
);
645
Assert.Empty(control.
DisplayMember
);
System\Windows\Forms\ListBoxTests.cs (3)
62
Assert.Empty(control.
DisplayMember
);
802
Assert.Empty(control.
DisplayMember
);
809
Assert.Empty(control.
DisplayMember
);
System\Windows\Forms\ListControlTests.cs (83)
59
Assert.Empty(control.
DisplayMember
);
150
Assert.Empty(control.
DisplayMember
);
158
Assert.Empty(control.
DisplayMember
);
175
Assert.Empty(control.
DisplayMember
);
183
Assert.Empty(control.
DisplayMember
);
201
Assert.Empty(control.
DisplayMember
);
209
Assert.Empty(control.
DisplayMember
);
228
Assert.Equal("Value", control.
DisplayMember
);
236
Assert.Equal("Value", control.
DisplayMember
);
256
Assert.Empty(control.
DisplayMember
);
264
Assert.Empty(control.
DisplayMember
);
285
Assert.Equal("Value", control.
DisplayMember
);
292
Assert.Equal("Value", control.
DisplayMember
);
569
Assert.Empty(control.
DisplayMember
);
576
Assert.Empty(control.
DisplayMember
);
592
Assert.Empty(control.
DisplayMember
);
599
Assert.Empty(control.
DisplayMember
);
615
Assert.Equal("Capacity", control.
DisplayMember
);
622
Assert.Equal("Capacity", control.
DisplayMember
);
640
Assert.Equal(value is null ? string.Empty : "Capacity", control.
DisplayMember
);
647
Assert.Equal(value is null ? string.Empty : "Capacity", control.
DisplayMember
);
662
Assert.Equal("Count", control.
DisplayMember
);
667
Assert.Empty(control.
DisplayMember
);
681
Assert.Equal("Count", control.
DisplayMember
);
686
Assert.Empty(control.
DisplayMember
);
700
Assert.Equal("Count", control.
DisplayMember
);
705
Assert.Empty(control.
DisplayMember
);
720
Assert.Equal("Count", control.
DisplayMember
);
726
Assert.Equal("Count", control.
DisplayMember
);
745
Assert.Equal("Count", control.
DisplayMember
);
750
Assert.Equal("Count", control.
DisplayMember
);
764
Assert.Equal("Count", control.
DisplayMember
);
769
Assert.Equal("Count", control.
DisplayMember
);
783
Assert.Equal("Count", control.
DisplayMember
);
788
Assert.Equal("Count", control.
DisplayMember
);
802
Assert.Equal("Count", control.
DisplayMember
);
807
Assert.Equal("Count", control.
DisplayMember
);
821
Assert.Equal("Count", control.
DisplayMember
);
826
Assert.Equal("Count", control.
DisplayMember
);
842
Assert.Equal("Count", control.
DisplayMember
);
849
Assert.Equal("Count", control.
DisplayMember
);
865
Assert.Empty(control.
DisplayMember
);
878
Assert.Empty(control.
DisplayMember
);
902
Assert.Empty(control.
DisplayMember
);
915
Assert.Empty(control.
DisplayMember
);
939
Assert.Equal("Value", control.
DisplayMember
);
945
Assert.Equal("Value", control.
DisplayMember
);
962
Assert.Equal(value is null ? "NoSuchDisplayMember" : string.Empty, control.
DisplayMember
);
975
Assert.Equal(value is null ? "NoSuchDisplayMember" : string.Empty, control.
DisplayMember
);
1057
Assert.Empty(control.
DisplayMember
);
1077
Assert.Equal(expected, control.
DisplayMember
);
1084
Assert.Equal(expected, control.
DisplayMember
);
1099
Assert.Equal(expected, control.
DisplayMember
);
1106
Assert.Equal(expected, control.
DisplayMember
);
1123
Assert.Equal(value, control.
DisplayMember
);
1130
Assert.Equal(value, control.
DisplayMember
);
1147
Assert.Equal(expected, control.
DisplayMember
);
1154
Assert.Equal(expected, control.
DisplayMember
);
1173
Assert.Empty(control.
DisplayMember
);
1180
Assert.Empty(control.
DisplayMember
);
1202
Assert.Equal(expected, control.
DisplayMember
);
1209
Assert.Equal(expected, control.
DisplayMember
);
1230
Assert.Empty(control.
DisplayMember
);
1245
Assert.Empty(control.
DisplayMember
);
1281
Assert.Equal("Value1", control.
DisplayMember
);
1287
Assert.Equal("Value1", control.
DisplayMember
);
1293
Assert.Equal("Value2", control.
DisplayMember
);
1299
Assert.Empty(control.
DisplayMember
);
1305
Assert.Empty(control.
DisplayMember
);
1313
Assert.Equal("Value1", control.
DisplayMember
);
1331
Assert.Equal("Value1", control.
DisplayMember
);
1689
Assert.Equal(expected, control.
DisplayMember
);
1697
Assert.Equal(expected, control.
DisplayMember
);
1714
Assert.Equal("DisplayMember", control.
DisplayMember
);
1722
Assert.Equal("DisplayMember", control.
DisplayMember
);
1740
Assert.Equal(expected, control.
DisplayMember
);
1748
Assert.Equal(expected, control.
DisplayMember
);
1771
Assert.Equal(expected, control.
DisplayMember
);
1779
Assert.Equal(expected, control.
DisplayMember
);
1797
Assert.Equal("NoSuchValue", control.
DisplayMember
);
1819
Assert.Equal("OtherValue", control.
DisplayMember
);
1827
Assert.Equal("OtherValue", control.
DisplayMember
);
1846
Assert.Equal("Value", control.
DisplayMember
);