13 writes to Font
System.Windows.Forms.Design (1)
System\Drawing\Design\FontEditor.cs (1)
35
_fontDialog.
Font
= fontValue;
System.Windows.Forms.Tests (12)
System\Windows\Forms\FontDialogTests.cs (12)
233
Font
= font
245
Font
= font
263
Font
= font
281
Font
= font
301
Font
= value
306
dialog.
Font
= value;
317
Font
= font
320
dialog.
Font
= value;
324
dialog.
Font
= value;
336
dialog.
Font
= font;
353
dialog.
Font
= font;
591
Font
= font,
27 references to Font
System.Windows.Forms (5)
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (5)
16
[DefaultProperty(nameof(
Font
))]
384
LOGFONTW logFont =
Font
.ToLogicalFont(graphics);
448
/// Indicates whether the <see cref="
Font
"/> property should be persisted.
450
private bool ShouldSerializeFont() => !
Font
.Equals(Control.DefaultFont);
452
public override string ToString() => $"{base.ToString()}, Font: {
Font
}";
System.Windows.Forms.Design (1)
System\Drawing\Design\FontEditor.cs (1)
43
return _fontDialog.
Font
;
System.Windows.Forms.Tests (21)
System\Windows\Forms\FontDialogTests.cs (21)
26
Assert.Equal(Control.DefaultFont, dialog.
Font
);
56
Assert.Equal(Control.DefaultFont, dialog.
Font
);
235
Assert.Same(font, dialog.
Font
);
247
Font result = dialog.
Font
;
248
Assert.NotSame(result, dialog.
Font
);
249
Assert.NotSame(font, dialog.
Font
);
265
Font result = dialog.
Font
;
266
Assert.NotSame(result, dialog.
Font
);
267
Assert.NotSame(font, dialog.
Font
);
283
Assert.Same(font, dialog.
Font
);
303
Assert.Equal(value ?? Control.DefaultFont, dialog.
Font
);
307
Assert.Equal(value ?? Control.DefaultFont, dialog.
Font
);
321
Assert.Equal(value ?? Control.DefaultFont, dialog.
Font
);
325
Assert.Equal(value ?? Control.DefaultFont, dialog.
Font
);
331
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(FontDialog))[nameof(FontDialog.
Font
)];
337
Assert.Same(font, dialog.
Font
);
341
Assert.Equal(Control.DefaultFont, dialog.
Font
);
348
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(FontDialog))[nameof(FontDialog.
Font
)];
354
Assert.Same(font, dialog.
Font
);
358
Assert.Equal(Control.DefaultFont, dialog.
Font
);
615
Assert.Equal(Control.DefaultFont, dialog.
Font
);