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