10 writes to LineColor
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
143_cellStyleProperties.LineColor = Drawing.SystemColors.ScrollBar;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
580_propertyGrid1.LineColor = SystemColors.ScrollBar;
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
284_propertyGrid1.LineColor = SystemColors.ScrollBar;
System.Windows.Forms.Tests (6)
System\Windows\Forms\PropertyGridTests.cs (6)
2157LineColor = value 2163control.LineColor = value; 2181control.LineColor = value; 2189control.LineColor = value; 2204control.LineColor = Color.Red; 2220control.LineColor = Color.Red;
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
269_propertyGrid.LineColor = Color.Red;
22 references to LineColor
System.Windows.Forms (9)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (1)
125ControlPaint.DrawFocusRectangle(g, focusRect, SystemColors.ControlText, OwnerGrid.LineColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (5)
1594? InvertColor(OwnerGrid.LineColor) 1678Color textColor = InvertColor(OwnerGrid.LineColor); 1710Color backgroundColor = ColorInversionNeededInHighContrast ? InvertColor(OwnerGrid.LineColor) : OwnerGrid.LineColor; 1745penColor = InvertColor(OwnerGrid.LineColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
1306public Color LineColor => OwnerGrid.LineColor; 3301using var splitterPen = OwnerGrid.LineColor.GetCachedPenScope(SplitterWidth); 3305using var linePen = g.FindNearestColor(OwnerGrid.LineColor).GetCachedPenScope();
System.Windows.Forms.Tests (11)
System\Windows\Forms\PropertyGridTests.cs (11)
122Assert.Equal(SystemColors.InactiveBorder, control.LineColor); 2159Assert.Equal(value, control.LineColor); 2164Assert.Equal(value, control.LineColor); 2182Assert.Equal(value, control.LineColor); 2190Assert.Equal(value, control.LineColor); 2200PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.LineColor)]; 2205Assert.Equal(Color.Red, control.LineColor); 2209Assert.Equal(SystemColors.InactiveBorder, control.LineColor); 2216PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PropertyGrid))[nameof(PropertyGrid.LineColor)]; 2221Assert.Equal(Color.Red, control.LineColor); 2225Assert.Equal(SystemColors.InactiveBorder, control.LineColor);
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (2)
267_propertyGrid.LineColor.Should().Be(SystemColors.InactiveBorder); 270_propertyGrid.LineColor.Should().Be(Color.Red);