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