9 writes to Font
System.Windows.Forms (5)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
750
_propBag.
Font
= null;
766
_propBag.
Font
= value;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2896
retval.
Font
= node._propBag.Font;
System\Windows\Forms\OwnerDrawPropertyBag.cs (2)
24
Font
= font;
81
result.
Font
= value.Font;
System.Windows.Forms.Tests (4)
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (4)
47
bag.
Font
= value;
52
bag.
Font
= value;
80
value.
Font
= SystemFonts.MenuFont;
111
original.
Font
= SystemFonts.MenuFont;
16 references to Font
System.Windows.Forms (10)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
738
return _propBag.
Font
;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2795
if (renderinfo is not null && renderinfo.
Font
is not null)
2896
retval.Font = node._propBag.
Font
;
System\Windows\Forms\OwnerDrawPropertyBag.cs (7)
22
if (entry.Name == nameof(
Font
) && entry.Value is Font font)
53
Debug.Assert(
Font
is not null);
54
_fontWrapper = new Control.FontHandleWrapper(
Font
);
64
public virtual bool IsEmpty() =>
Font
is null && ForeColor.IsEmpty && BackColor.IsEmpty;
81
result.Font = value.
Font
;
90
si.AddValue(nameof(
Font
),
Font
);
System.Windows.Forms.Tests (6)
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (6)
18
Assert.Null(bag.
Font
);
48
Assert.Same(value, bag.
Font
);
53
Assert.Same(value, bag.
Font
);
86
Assert.Equal(SystemFonts.MenuFont.Name, bag.
Font
.Name);
99
Assert.Null(bag.
Font
);
125
Assert.Equal(SystemFonts.MenuFont.Name, bag.
Font
.Name);