7 writes to CategoryForeColor
System.Windows.Forms.Tests (6)
System\Windows\Forms\PropertyGridTests.cs (6)
711
CategoryForeColor
= value
717
control.
CategoryForeColor
= value;
735
control.
CategoryForeColor
= value;
743
control.
CategoryForeColor
= value;
758
control.
CategoryForeColor
= Color.Red;
774
control.
CategoryForeColor
= Color.Red;
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
367
_propertyGrid.
CategoryForeColor
= SystemColors.MenuHighlight;
14 references to CategoryForeColor
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (1)
62
protected override Color LabelTextColor => OwnerGrid.
CategoryForeColor
;
System.Windows.Forms.Tests (11)
System\Windows\Forms\PropertyGridTests.cs (11)
58
Assert.Equal(SystemColors.ControlText, control.
CategoryForeColor
);
713
Assert.Equal(value, control.
CategoryForeColor
);
718
Assert.Equal(value, control.
CategoryForeColor
);
736
Assert.Equal(value, control.
CategoryForeColor
);
744
Assert.Equal(value, control.
CategoryForeColor
);
754
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
CategoryForeColor
)];
759
Assert.Equal(Color.Red, control.
CategoryForeColor
);
763
Assert.Equal(SystemColors.ControlText, control.
CategoryForeColor
);
770
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.
CategoryForeColor
)];
775
Assert.Equal(Color.Red, control.
CategoryForeColor
);
779
Assert.Equal(SystemColors.ControlText, control.
CategoryForeColor
);
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
365
_propertyGrid.
CategoryForeColor
.Should().Be(SystemColors.ControlText);
368
_propertyGrid.
CategoryForeColor
.Should().Be(SystemColors.MenuHighlight);