6 writes to Color
System.Web.DataVisualization (2)
Common\General\ChartGraphics.cs (2)
4169
_solidBrush.
Color
= backColor;
4467
_solidBrush.
Color
= backColor;
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
637
brush.
Color
= colors.buttonShadow;
winforms\Managed\System\WinForms\ControlPaint.cs (1)
1947
brush.
Color
= color;
System.Windows.Forms.DataVisualization (2)
Common\General\ChartGraphics.cs (2)
4169
_solidBrush.
Color
= backColor;
4467
_solidBrush.
Color
= backColor;
137 references to Color
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspectorFontAndColorDictionary.cs (4)
27
color.A = drawingBrush.
Color
.A;
28
color.R = drawingBrush.
Color
.R;
29
color.G = drawingBrush.
Color
.G;
30
color.B = drawingBrush.
Color
.B;
System.Web.DataVisualization (9)
Common\ChartTypes\PieChart.cs (4)
3325
brush = graph.GetGradientBrush(graph.GetAbsoluteRectangle(area.Position.ToRectangleF()), Color.FromArgb(brushWithoutLight.
Color
.A, 0, 0, 0), brushWithoutLight.
Color
, GradientStyle.VerticalCenter);
3837
brush = graph.GetGradientBrush(graph.GetAbsoluteRectangle(area.Position.ToRectangleF()), Color.FromArgb(brushWithoutLight.
Color
.A, 0, 0, 0), brushWithoutLight.
Color
, GradientStyle.VerticalCenter);
Common\General\ChartGraphics.cs (1)
4054
brushColor = ((SolidBrush)brush).
Color
;
Common\General\ChartGraphics3D.cs (4)
581
area.matrix3D.GetLight(brush.
Color
, out frontLightColor, out backLightColor, out leftLightColor, out rightLightColor, out topLightColor, out bottomLightColor);
642
area.matrix3D.GetLight(brush.
Color
, out frontLightColor, out backLightColor, out leftLightColor, out rightLightColor, out topLightColor, out bottomLightColor);
875
area.matrix3D.GetLight(brush.
Color
, out frontLightColor, out backLightColor, out leftLightColor, out rightLightColor, out topLightColor, out bottomLightColor);
1013
area.matrix3D.GetLight(brush.
Color
, out frontLightColor, out backLightColor, out leftLightColor, out rightLightColor, out topLightColor, out bottomLightColor);
System.Windows.Forms (115)
winforms\Managed\System\WinForms\DataGrid.cs (29)
352
BackColor = DefaultBackBrush.
Color
;
353
ForeColor = DefaultForeBrush.
Color
;
417
return alternatingBackBrush.
Color
;
426
if (!alternatingBackBrush.
Color
.Equals(value)) {
439
AlternatingBackColor = DefaultAlternatingBackBrush.
Color
;
487
if (!this.BackColor.Equals(DefaultBackBrush.
Color
)) {
488
this.BackColor = DefaultBackBrush.
Color
;
513
if (!this.ForeColor.Equals(DefaultForeBrush.
Color
)) {
514
this.ForeColor = DefaultForeBrush.
Color
;
1190
return selectionBackBrush.
Color
;
1197
if (!value.Equals(selectionBackBrush.
Color
)) {
1232
SelectionBackColor = DefaultSelectionBackBrush.
Color
;
1245
return selectionForeBrush.
Color
;
1250
if (!value.Equals(selectionForeBrush.
Color
)) {
1273
SelectionForeColor = DefaultSelectionForeBrush.
Color
;
1281
return !DefaultForeBrush.
Color
.Equals(this.ForeColor);
1290
return !DefaultBackBrush.
Color
.Equals(this.BackColor);
1803
return gridLineBrush.
Color
;
1806
if (gridLineBrush.
Color
!= value) {
1831
GridLineColor = DefaultGridLineBrush.
Color
;
2002
return headerBackBrush.
Color
;
2009
if (!value.Equals(headerBackBrush.
Color
)) {
2042
HeaderBackColor = DefaultHeaderBackBrush.
Color
;
2080
return backgroundBrush.
Color
;
2085
if (!value.Equals(backgroundBrush.
Color
)) {
2212
HeaderForeColor = DefaultHeaderForeBrush.
Color
;
2353
return linkBrush.
Color
;
2358
if (!linkBrush.
Color
.Equals(value)) {
2379
LinkColor = DefaultLinkBrush.
Color
;
winforms\Managed\System\WinForms\DataGridCaption.cs (3)
142
return backBrush.
Color
;
145
if (!backBrush.
Color
.Equals(value)) {
244
return foreBrush.
Color
;
winforms\Managed\System\WinForms\DataGridParentRows.cs (4)
103
return backBrush.
Color
;
108
if (value != backBrush.
Color
) {
222
return foreBrush.
Color
;
227
if (value != foreBrush.
Color
) {
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (2)
734
ControlPaint.DrawFocusRectangle(g, textBounds, ((SolidBrush)textBrush).
Color
, ((SolidBrush)GetBackBrush()).
Color
);
winforms\Managed\System\WinForms\DataGridTable.cs (25)
163
return alternatingBackBrush.
Color
;
176
if (!alternatingBackBrush.
Color
.Equals(value)) {
202
AlternatingBackColor = DefaultAlternatingBackBrush.
Color
;
254
return this.backBrush.
Color
;
267
if (!backBrush.
Color
.Equals(value)) {
294
this.BackColor = DefaultBackBrush.
Color
;
407
return this.foreBrush.
Color
;
418
if (!foreBrush.
Color
.Equals(value)) {
451
this.ForeColor = DefaultForeBrush.
Color
;
465
return gridLineBrush.
Color
;
472
if (gridLineBrush.
Color
!= value) {
511
GridLineColor = DefaultGridLineBrush.
Color
;
581
return headerBackBrush.
Color
;
592
if (!value.Equals(headerBackBrush.
Color
)) {
641
HeaderBackColor = DefaultHeaderBackBrush.
Color
;
773
HeaderForeColor = DefaultHeaderForeBrush.
Color
;
799
return linkBrush.
Color
;
808
if (!linkBrush.
Color
.Equals(value)) {
844
LinkColor = DefaultLinkBrush.
Color
;
1215
return selectionBackBrush.
Color
;
1226
if (!value.Equals(selectionBackBrush.
Color
)) {
1276
SelectionBackColor = DefaultSelectionBackBrush.
Color
;
1290
return selectionForeBrush.
Color
;
1299
if (!value.Equals(selectionForeBrush.
Color
)) {
1337
SelectionForeColor = DefaultSelectionForeBrush.
Color
;
winforms\Managed\System\WinForms\DataGridView.cs (17)
1289
return this.backgroundBrush.
Color
;
1301
if (!value.Equals(this.backgroundBrush.
Color
))
1397
return !this.BackgroundColor.Equals(DefaultBackgroundBrush.
Color
);
1948
defaultStyle.BackColor = DefaultHeadersBackBrush.
Color
;
1949
defaultStyle.ForeColor = DefaultForeBrush.
Color
;
1950
defaultStyle.SelectionBackColor = DefaultSelectionBackBrush.
Color
;
1951
defaultStyle.SelectionForeColor = DefaultSelectionForeBrush.
Color
;
2516
defaultCellStyleTmp.BackColor = DefaultBackBrush.
Color
;
2525
defaultCellStyleTmp.SelectionBackColor = DefaultSelectionBackBrush.
Color
;
2529
defaultCellStyleTmp.SelectionForeColor = DefaultSelectionForeBrush.
Color
;
2575
defaultCellStyle.BackColor = DefaultBackBrush.
Color
;
2577
defaultCellStyle.SelectionBackColor = DefaultSelectionBackBrush.
Color
;
2578
defaultCellStyle.SelectionForeColor = DefaultSelectionForeBrush.
Color
;
2637
defaultStyle.BackColor = DefaultHeadersBackBrush.
Color
;
2638
defaultStyle.ForeColor = DefaultForeBrush.
Color
;
2639
defaultStyle.SelectionBackColor = DefaultSelectionBackBrush.
Color
;
2640
defaultStyle.SelectionForeColor = DefaultSelectionForeBrush.
Color
;
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (4)
736
if (paint && DataGridViewCell.PaintBackground(paintParts) && backBrush.
Color
.A == 255)
805
ButtonInternal.ButtonBaseAdapter.DrawDefaultBorder(g, valBounds, foreBrush.
Color
, true /*isDefault == true*/);
807
if (backBrush.
Color
.A == 255)
1035
textColor = foreBrush.
Color
;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (7)
1219
if (paint && DataGridViewCell.PaintBackground(paintParts) && br.
Color
.A == 255)
1246
ControlPaint.DrawFocusRectangle(g, valBounds, Color.Empty, br.
Color
);
1373
highlight = ControlPaint.LightLight(backBrush.
Color
);
1391
using (Pen pen = new Pen(foreBrush.
Color
))
1406
ButtonInternal.ButtonBaseAdapter.DrawDitheredFill(g, backBrush.
Color
, highlight, checkBounds);
1453
ControlPaint.DrawImageColorized(g, checkImage, fullSize, checkState == CheckState.Indeterminate ? ControlPaint.LightLight(foreBrush.
Color
) : foreBrush.
Color
);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (1)
895
if (br.
Color
.A == 255)
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (7)
2169
if (paint && DataGridViewCell.PaintBackground(paintParts) && br.
Color
.A == 255 && valBounds.Width > 0 && valBounds.Height > 0)
2192
if (paintPostXPThemes && DataGridViewCell.PaintBackground(paintParts) && br.
Color
.A == 255)
2208
DataGridViewCell.PaintBackground(paintParts) && br.
Color
.A == 255 && valBounds.Width > 2 && valBounds.Height > 2)
2213
else if (DataGridViewCell.PaintBackground(paintParts) && br.
Color
.A == 255)
2548
ControlPaint.DrawFocusRectangle(g, focusBounds, Color.Empty, br.
Color
);
2559
ControlPaint.DrawFocusRectangle(g, focusBounds, Color.Empty, br.
Color
);
2564
ControlPaint.DrawFocusRectangle(g, textBounds, Color.Empty, br.
Color
);
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
657
if (br.
Color
.A == 255)
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (4)
903
if (DataGridViewCell.PaintBackground(paintParts) && br.
Color
.A == 255)
927
if (paint && DataGridViewCell.PaintBackground(paintParts) && br.
Color
.A == 255)
936
if (paint && DataGridViewCell.PaintBackground(paintParts) && br.
Color
.A == 255)
952
ControlPaint.DrawFocusRectangle(g, valBounds, Color.Empty, br.
Color
);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (4)
1021
if (paint && DataGridViewCell.PaintBackground(paintParts) && br.
Color
.A == 255)
1084
ControlPaint.DrawFocusRectangle(g, focusBounds, Color.Empty, br.
Color
);
1121
ControlPaint.DrawFocusRectangle(g, errorBounds, Color.Empty, br.
Color
);
1147
ControlPaint.DrawFocusRectangle(g, valBounds, Color.Empty, br.
Color
);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
25931
this.BackgroundColor = DefaultBackgroundBrush.
Color
;
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (1)
867
if (paint && DataGridViewCell.PaintBackground(paintParts) && br.
Color
.A == 255)
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (2)
717
if (paint && DataGridViewCell.PaintBackground(paintParts) && br.
Color
.A == 255 && valBounds.Width > 0 && valBounds.Height > 0)
745
ControlPaint.DrawFocusRectangle(graphics, valBounds, Color.Empty, br.
Color
);
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
306
if (br.
Color
.A == 255)
winforms\Managed\System\WinForms\LinkLabel.cs (2)
1433
brushColor = linkBrush.
Color
;
1492
color = wg.GetNearestColor(foreBrush.
Color
);
System.Windows.Forms.DataVisualization (9)
Common\ChartTypes\PieChart.cs (4)
3325
brush = graph.GetGradientBrush(graph.GetAbsoluteRectangle(area.Position.ToRectangleF()), Color.FromArgb(brushWithoutLight.
Color
.A, 0, 0, 0), brushWithoutLight.
Color
, GradientStyle.VerticalCenter);
3837
brush = graph.GetGradientBrush(graph.GetAbsoluteRectangle(area.Position.ToRectangleF()), Color.FromArgb(brushWithoutLight.
Color
.A, 0, 0, 0), brushWithoutLight.
Color
, GradientStyle.VerticalCenter);
Common\General\ChartGraphics.cs (1)
4054
brushColor = ((SolidBrush)brush).
Color
;
Common\General\ChartGraphics3D.cs (4)
581
area.matrix3D.GetLight(brush.
Color
, out frontLightColor, out backLightColor, out leftLightColor, out rightLightColor, out topLightColor, out bottomLightColor);
642
area.matrix3D.GetLight(brush.
Color
, out frontLightColor, out backLightColor, out leftLightColor, out rightLightColor, out topLightColor, out bottomLightColor);
875
area.matrix3D.GetLight(brush.
Color
, out frontLightColor, out backLightColor, out leftLightColor, out rightLightColor, out topLightColor, out bottomLightColor);
1013
area.matrix3D.GetLight(brush.
Color
, out frontLightColor, out backLightColor, out leftLightColor, out rightLightColor, out topLightColor, out bottomLightColor);