Base:
property
Font
System.Windows.Forms.Control.Font
1 override of Font
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
250
public override Font
Font
29 writes to Font
System.Windows.Forms.Tests (27)
System\Windows\Forms\RichTextBoxTests.cs (27)
1335
Font
= value
1342
control.
Font
= value;
1355
Font
= value
1362
control.
Font
= value;
1375
Font
= oldValue
1378
control.
Font
= value;
1384
control.
Font
= value;
1397
Font
= oldValue,
1401
control.
Font
= value;
1407
control.
Font
= value;
1438
control.
Font
= value;
1447
control.
Font
= value;
1475
control.
Font
= value;
1484
control.
Font
= value;
1509
Font
= oldValue
1522
control.
Font
= value;
1531
control.
Font
= value;
1547
Font
= oldValue,
1561
control.
Font
= value;
1570
control.
Font
= value;
1606
control.
Font
= font;
1615
control.
Font
= null;
1648
control.
Font
= font1;
1653
control.
Font
= font1;
1659
control.
Font
= font2;
1664
control.
Font
= null;
1670
control.
Font
= font1;
WinFormsControlsTest (2)
DragDrop.Designer.cs (1)
97
richTextBox.
Font
= new Font("Segoe UI", 14.25F);
MultipleControls.Designer.cs (1)
109
this.richTextBox1.
Font
= new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
43 references to Font
System.Windows.Forms (1)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
403
SetCharFormatFont(selectionOnly: false,
Font
);
System.Windows.Forms.Design (3)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (3)
252
get => base.
Font
;
305
replaceFont = new Font(fallBackFontName, base.
Font
.Size, base.
Font
.Style);
System.Windows.Forms.Tests (39)
System\Windows\Forms\RichTextBoxTests.cs (39)
80
Assert.Equal(Control.DefaultFont, control.
Font
);
81
Assert.Equal(control.
Font
.Height, control.FontHeight);
1337
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1338
Assert.Equal(control.
Font
.Height, control.FontHeight);
1343
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1344
Assert.Equal(control.
Font
.Height, control.FontHeight);
1357
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1358
Assert.Equal(control.
Font
.Height, control.FontHeight);
1363
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1364
Assert.Equal(control.
Font
.Height, control.FontHeight);
1379
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1380
Assert.Equal(control.
Font
.Height, control.FontHeight);
1385
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1386
Assert.Equal(control.
Font
.Height, control.FontHeight);
1402
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1403
Assert.Equal(control.
Font
.Height, control.FontHeight);
1408
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1409
Assert.Equal(control.
Font
.Height, control.FontHeight);
1439
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1440
Assert.Equal(control.
Font
.Height, control.FontHeight);
1448
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1449
Assert.Equal(control.
Font
.Height, control.FontHeight);
1476
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1477
Assert.Equal(control.
Font
.Height, control.FontHeight);
1485
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1486
Assert.Equal(control.
Font
.Height, control.FontHeight);
1523
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1524
Assert.Equal(control.
Font
.Height, control.FontHeight);
1532
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1533
Assert.Equal(control.
Font
.Height, control.FontHeight);
1562
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1563
Assert.Equal(control.
Font
.Height, control.FontHeight);
1571
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1572
Assert.Equal(control.
Font
.Height, control.FontHeight);
1649
Assert.Same(font1, control.
Font
);
1654
Assert.Same(font1, control.
Font
);
1660
Assert.Same(font2, control.
Font
);
1665
Assert.Equal(Control.DefaultFont, control.
Font
);
1671
Assert.Same(font1, control.
Font
);