7 writes to ViewForeColor
System.Windows.Forms.Tests (6)
System\Windows\Forms\PropertyGridTests.cs (6)
3415ViewForeColor = value 3421control.ViewForeColor = value; 3439control.ViewForeColor = value; 3447control.ViewForeColor = value; 3462control.ViewForeColor = Color.Red; 3478control.ViewForeColor = Color.Red;
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
358_propertyGrid.ViewForeColor = Color.Green;
13 references to ViewForeColor
System.Windows.Forms.Tests (11)
System\Windows\Forms\PropertyGridTests.cs (11)
166Assert.Equal(SystemColors.WindowText, control.ViewForeColor); 3417Assert.Equal(expected, control.ViewForeColor); 3422Assert.Equal(expected, control.ViewForeColor); 3440Assert.Equal(expected, control.ViewForeColor); 3448Assert.Equal(expected, control.ViewForeColor); 3458PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewForeColor)]; 3463Assert.Equal(Color.Red, control.ViewForeColor); 3467Assert.Equal(SystemColors.WindowText, control.ViewForeColor); 3474PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.ViewForeColor)]; 3479Assert.Equal(Color.Red, control.ViewForeColor); 3483Assert.Equal(SystemColors.WindowText, control.ViewForeColor);
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
356_propertyGrid.ViewForeColor.Should().Be(SystemColors.WindowText); 359_propertyGrid.ViewForeColor.Should().Be(Color.Green);