Base:
method
Equals
System.Object.Equals(System.Object)
22 references to Equals
System.Windows.Forms (22)
misc\GDI\WindowsGraphicsCacheManager.cs (1)
157if (WindowsFontCache[index].Key.Equals(font)) // don't do shallow comparison, we could miss cloned fonts.
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2FontConverter.cs (1)
107if (lastFont != null && lastFont.Equals(managedValue)) {
winforms\Managed\System\WinForms\Control.cs (6)
2540localChanged = !value.Equals(local); 2553if (!resolved.Equals(value)) { 2587if ((local == null) || !local.Equals(newFont)) { 2590if (!resolved.Equals(newFont)) { 3861if (checkFont && !oldFont.Equals(Font)) { 5506if (!oldFont.Equals(Font)) {
winforms\Managed\System\WinForms\DataGrid.cs (1)
2132if (!value.Equals(headerFont)) {
winforms\Managed\System\WinForms\DataGridCaption.cs (3)
88if (dataGridFont == null || !dataGridFont.Equals(dataGrid.Font)) { 175if (textFont == null || !textFont.Equals(value)) { 189return textFont != null && !textFont.Equals(this.dataGridFont);
winforms\Managed\System\WinForms\DataGridTable.cs (1)
664if (value == null && headerFont != null || (value != null && !value.Equals(headerFont))) {
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (1)
228(f != null && value != null && !f.Equals(this.Font)))
winforms\Managed\System\WinForms\DateTimePicker.cs (1)
280if ((value == null && calendarFont != null) || (value != null && !value.Equals(calendarFont))) {
winforms\Managed\System\WinForms\FontDialog.cs (1)
652return !Font.Equals(Control.DefaultFont);
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
1402else if (cacheItems.useCompatTextRendering == ownerGrid.UseCompatibleTextRendering && cacheItems.lastLabel == labelText && f.Equals(cacheItems.lastLabelFont)) { 1421else if (cacheItems.lastValueTextWidth != -1 && cacheItems.lastValueString == valueString && f.Equals(cacheItems.lastValueFont)) {
winforms\Managed\System\WinForms\RichTextBox.cs (1)
534if (f == null || !f.Equals (value)) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
814if (!originalFont.Equals(Font)) {
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
752if (!local.Equals(childItem.OwnerItem?.Font)) {
winforms\Managed\System\WinForms\TreeNode.cs (1)
759if (!value.Equals(oldfont)) InvalidateHostTree();