12 writes to SelectedValue
System.Windows.Forms.Tests (12)
System\Windows\Forms\ListControlTests.cs (12)
1928control.SelectedValue = "StringValue"; 1934control.SelectedValue = "StringValue"; 1961control.SelectedValue = value; 1967control.SelectedValue = value; 1986control.SelectedValue = "selected"; 1992control.SelectedValue = "selected"; 2006SelectedValue = value 2041control.SelectedValue = "StringValue"; 2046control.SelectedValue = "StringValue"; 2052control.SelectedValue = "StringValue"; 2069Assert.Throws<ArgumentNullException>("key", () => control.SelectedValue = null); 2087Assert.Throws<InvalidOperationException>(() => control.SelectedValue = value);
18 references to SelectedValue
System.Windows.Forms (2)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
23[DefaultBindingProperty(nameof(SelectedValue))]
System\Windows\Forms\Controls\ListControl\ListControl.cs (1)
11[LookupBindingProperties(nameof(DataSource), nameof(DisplayMember), nameof(ValueMember), nameof(SelectedValue))]
System.Windows.Forms.Tests (16)
System\Windows\Forms\ComboBoxTests.cs (1)
116Assert.Null(control.SelectedValue);
System\Windows\Forms\ListBoxTests.cs (1)
110Assert.Null(control.SelectedValue);
System\Windows\Forms\ListControlTests.cs (14)
97Assert.Null(control.SelectedValue); 1930Assert.Equal("StringValue", control.SelectedValue); 1936Assert.Equal("StringValue", control.SelectedValue); 1963Assert.Null(control.SelectedValue); 1969Assert.Null(control.SelectedValue); 1988Assert.Null(control.SelectedValue); 1994Assert.Null(control.SelectedValue); 2009Assert.Null(control.SelectedValue); 2015Assert.Throws<IndexOutOfRangeException>(() => control.SelectedValue); 2042Assert.Equal("StringValue", control.SelectedValue); 2047Assert.Equal("StringValue", control.SelectedValue); 2053Assert.Equal("StringValue", control.SelectedValue); 2071Assert.Null(control.SelectedValue); 2089Assert.Throws<IndexOutOfRangeException>(() => control.SelectedValue);