12 writes to SelectedValue
System.Windows.Forms.Tests (12)
System\Windows\Forms\ListControlTests.cs (12)
1926control.SelectedValue = "StringValue"; 1932control.SelectedValue = "StringValue"; 1959control.SelectedValue = value; 1965control.SelectedValue = value; 1984control.SelectedValue = "selected"; 1990control.SelectedValue = "selected"; 2004SelectedValue = value 2039control.SelectedValue = "StringValue"; 2044control.SelectedValue = "StringValue"; 2050control.SelectedValue = "StringValue"; 2067Assert.Throws<ArgumentNullException>("key", () => control.SelectedValue = null); 2085Assert.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)
114Assert.Null(control.SelectedValue);
System\Windows\Forms\ListBoxTests.cs (1)
108Assert.Null(control.SelectedValue);
System\Windows\Forms\ListControlTests.cs (14)
95Assert.Null(control.SelectedValue); 1928Assert.Equal("StringValue", control.SelectedValue); 1934Assert.Equal("StringValue", control.SelectedValue); 1961Assert.Null(control.SelectedValue); 1967Assert.Null(control.SelectedValue); 1986Assert.Null(control.SelectedValue); 1992Assert.Null(control.SelectedValue); 2007Assert.Null(control.SelectedValue); 2013Assert.Throws<IndexOutOfRangeException>(() => control.SelectedValue); 2040Assert.Equal("StringValue", control.SelectedValue); 2045Assert.Equal("StringValue", control.SelectedValue); 2051Assert.Equal("StringValue", control.SelectedValue); 2069Assert.Null(control.SelectedValue); 2087Assert.Throws<IndexOutOfRangeException>(() => control.SelectedValue);