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