Base:
20 references to Equals
System.Drawing.Common.Tests (3)
System\Drawing\FontTests.cs (3)
37Assert.True(font1.Equals(font2)); 48Assert.False(font1.Equals(font2)); 445Assert.Equal(expected, font.Equals(other));
System.Windows.Forms (16)
System\Windows\Forms\Application.cs (2)
1389if (s_defaultFont.Equals(newSystemFont)) 1402if (font is null || !font.Equals(s_defaultFontScaled)) // change s_defaultFontScaled only if needed
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (1)
72if (_lastFont is not null && _lastFont.Equals(managedValue))
System\Windows\Forms\Control.cs (4)
1828if (currentFont.Equals(value)) 2976if (checkFont && !oldFont!.Equals(Font)) 4186if (!oldFont.Equals(Font)) 12492if (!s_defaultFont.Equals(font)) // the font has changed
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (1)
150if (previous != value || (previous is not null && !previous.Equals(value)))
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
210if ((value is null && _calendarFont is not null) || (value is not null && !value.Equals(_calendarFont)))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
1195&& font.Equals(_cacheItems.LastLabelFont)) 1218&& font.Equals(_cacheItems.LastValueFont))
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
410if (font is null || !font.Equals(value))
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
614if (!originalFont.Equals(Font))
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
788if (!currentFont.Equals(childItem.OwnerItem?.Font))
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
763if (!value.Equals(oldfont))
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (1)
450private bool ShouldSerializeFont() => !Font.Equals(Control.DefaultFont);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
380if (defaultSrcColumn is not null && srcColumn.DefaultCellStyle.Font is not null && !srcColumn.DefaultCellStyle.Font.Equals(defaultSrcColumn.DefaultCellStyle.Font))