Base:
method
Equals
System.ValueType.Equals(System.Object)
85 references to Equals
System.Web.Mobile (2)
UI\MobileControls\Design\StylesEditorDialog.cs (2)
574
if (!c.
Equals
(Color.Empty))
581
if (!c.
Equals
(Color.Empty))
System.Windows.Forms (83)
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (1)
243
cacheCheckColor.
Equals
(checkColor) &&
winforms\Managed\System\WinForms\ColorDialog.cs (1)
329
return !Color.
Equals
(Color.Black);
winforms\Managed\System\WinForms\Control.cs (7)
1115
if (!value.
Equals
(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255)
1123
if (!c.
Equals
(BackColor)) {
2746
if (!c.
Equals
(ForeColor)) {
3864
if (checkForeColor && !oldForeColor.
Equals
(ForeColor)) {
3867
if (checkBackColor && !oldBackColor.
Equals
(BackColor)) {
5509
if (!oldForeColor.
Equals
(ForeColor)) {
5512
if (!oldBackColor.
Equals
(BackColor)) {
winforms\Managed\System\WinForms\ControlPaint.cs (2)
2145
!frameColorActive.
Equals
(brushColor)) {
2265
!frameColorSelected.
Equals
(brushColor)) {
winforms\Managed\System\WinForms\DataGrid.cs (11)
426
if (!alternatingBackBrush.Color.
Equals
(value)) {
487
if (!this.BackColor.
Equals
(DefaultBackBrush.Color)) {
513
if (!this.ForeColor.
Equals
(DefaultForeBrush.Color)) {
1197
if (!value.
Equals
(selectionBackBrush.Color)) {
1250
if (!value.
Equals
(selectionForeBrush.Color)) {
1281
return !DefaultForeBrush.Color.
Equals
(this.ForeColor);
1290
return !DefaultBackBrush.Color.
Equals
(this.BackColor);
2009
if (!value.
Equals
(headerBackBrush.Color)) {
2085
if (!value.
Equals
(backgroundBrush.Color)) {
2184
if (!value.
Equals
(headerForePen.Color)) {
2358
if (!linkBrush.Color.
Equals
(value)) {
winforms\Managed\System\WinForms\DataGridCaption.cs (1)
145
if (!backBrush.Color.
Equals
(value)) {
winforms\Managed\System\WinForms\DataGridTable.cs (8)
176
if (!alternatingBackBrush.Color.
Equals
(value)) {
267
if (!backBrush.Color.
Equals
(value)) {
418
if (!foreBrush.Color.
Equals
(value)) {
592
if (!value.
Equals
(headerBackBrush.Color)) {
732
if (!value.
Equals
(headerForePen.Color)) {
808
if (!linkBrush.Color.
Equals
(value)) {
1226
if (!value.
Equals
(selectionBackBrush.Color)) {
1299
if (!value.
Equals
(selectionForeBrush.Color)) {
winforms\Managed\System\WinForms\DataGridView.cs (4)
1301
if (!value.
Equals
(this.backgroundBrush.Color))
1397
return !this.BackgroundColor.
Equals
(DefaultBackgroundBrush.Color);
3332
if (!value.
Equals
(this.gridPen.Color))
3365
return !this.GridPen.Color.
Equals
(DefaultGridColor);
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (4)
158
if (!c.
Equals
(this.BackColor))
252
if (!c.
Equals
(this.ForeColor))
501
if (!c.
Equals
(this.SelectionBackColor))
525
if (!c.
Equals
(this.SelectionForeColor))
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (12)
79
if (!value.
Equals
(this.ActiveLinkColor))
101
if (!value.
Equals
(this.ActiveLinkColor))
112
return !this.ActiveLinkColor.
Equals
(SystemColors.HotTrack);
115
return !this.ActiveLinkColor.
Equals
(LinkUtilities.IEActiveLinkColor);
212
if (!value.
Equals
(this.LinkColor))
234
if (!value.
Equals
(this.LinkColor))
245
return !this.LinkColor.
Equals
(SystemColors.HotTrack);
248
return !this.LinkColor.
Equals
(LinkUtilities.IELinkColor);
416
if (!value.
Equals
(this.VisitedLinkColor))
438
if (!value.
Equals
(this.VisitedLinkColor))
449
return !this.VisitedLinkColor.
Equals
(SystemColors.HotTrack);
452
return !this.VisitedLinkColor.
Equals
(LinkUtilities.IEVisitedLinkColor);
winforms\Managed\System\WinForms\DataGridViewLinkColumn.cs (9)
46
if (!this.ActiveLinkColor.
Equals
(value))
72
return !this.ActiveLinkColor.
Equals
(SystemColors.HotTrack);
75
return !this.ActiveLinkColor.
Equals
(LinkUtilities.IEActiveLinkColor);
156
if (!this.LinkColor.
Equals
(value))
182
return !this.LinkColor.
Equals
(SystemColors.HotTrack);
185
return !this.LinkColor.
Equals
(LinkUtilities.IELinkColor);
329
if (!this.VisitedLinkColor.
Equals
(value))
355
return !this.VisitedLinkColor.
Equals
(SystemColors.HotTrack);
358
return !this.VisitedLinkColor.
Equals
(LinkUtilities.IEVisitedLinkColor);
winforms\Managed\System\WinForms\DateTimePicker.cs (10)
254
if (!value.
Equals
(calendarForeColor)) {
321
if (!value.
Equals
(calendarTitleBackColor)) {
346
if (!value.
Equals
(calendarTitleForeColor)) {
371
if (!value.
Equals
(calendarTrailingText)) {
396
if (!value.
Equals
(calendarMonthBackground)) {
1487
return !CalendarForeColor.
Equals
(DefaultForeColor);
1501
return !calendarTitleBackColor.
Equals
(DefaultTitleBackColor);
1508
return !calendarTitleForeColor.
Equals
(DefaultTitleForeColor);
1515
return !calendarTrailingText.
Equals
(DefaultTrailingForeColor);
1522
return !calendarMonthBackground.
Equals
(DefaultMonthBackColor);
winforms\Managed\System\WinForms\FlatButtonAppearance.cs (1)
81
if (value.
Equals
(Color.Transparent)) {
winforms\Managed\System\WinForms\Form.cs (1)
6310
return !TransparencyKey.
Equals
(Color.Empty);
winforms\Managed\System\WinForms\ImageList.cs (2)
896
return !TransparentColor.
Equals
(Color.LightGray);
986
Debug.Assert(customTransparentColor.
Equals
(Color.Transparent),
winforms\Managed\System\WinForms\MonthCalendar.cs (3)
2184
return !TrailingForeColor.
Equals
(DEFAULT_TRAILING_FORE_COLOR);
2188
return !TitleForeColor.
Equals
(DEFAULT_TITLE_FORE_COLOR);
2192
return !TitleBackColor.
Equals
(DEFAULT_TITLE_BACK_COLOR);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (2)
946
return !BackColor.
Equals
(SystemColors.AppWorkspace);
957
return !ForeColor.
Equals
(Color.White);
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
559
if (!c.
Equals
(BackColor)) {
1031
if (!c.
Equals
(ForeColor)) {
winforms\Managed\System\WinForms\TreeNode.cs (2)
265
if (!value.
Equals
(oldbk)) InvalidateHostTree();
480
if (!value.
Equals
(oldfc)) InvalidateHostTree();