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