15 writes to Font
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (4)
111Font = font; 202Font = font; 935newItem.Font = Font; 1222Font = (Font)info.GetValue(nameof(Font), typeof(Font))!;
System.Windows.Forms.Tests (11)
SerializableTypesTests.cs (1)
167Font = font,
System\Windows\Forms\ListViewItemTests.cs (4)
984Font = value 990item.Font = value; 1006item.Font = value; 1010item.Font = value;
System\Windows\Forms\ListViewSubItemTests.cs (6)
31yield return new object[] { new ListViewItem() { BackColor = Color.Yellow, ForeColor = Color.Yellow, Font = SystemFonts.StatusFont }, "reasonable", "reasonable" }; 57yield return new object[] { new ListViewItem() { BackColor = Color.Yellow, ForeColor = Color.Yellow, Font = SystemFonts.StatusFont }, string.Empty, Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, string.Empty }; 237Font = SystemFonts.DialogFont 256Font = SystemFonts.DialogFont 294Font = SystemFonts.DialogFont 314Font = SystemFonts.DialogFont
39 references to Font
System.Windows.Forms (9)
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (1)
91TextRenderer.DrawText(Graphics, Item.Text, Item.Font, UpdateBounds(Bounds, drawText: true), Item.ForeColor, flags);
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (1)
138Font font = ItemIndex == -1 ? Item!.Font : SubItem!.Font;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (5)
935newItem.Font = Font; 1220else if (entry.Name == nameof(Font)) 1222Font = (Font)info.GetValue(nameof(Font), typeof(Font))!; 1284info.AddValue(nameof(Font), Font);
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (2)
114new Size(Math.Min(TextRenderer.MeasureText(item.Text, item.Font).Width, itemBounds.Width), 123int textWidth = TextRenderer.MeasureText(item.Text, item.Font).Width;
System.Windows.Forms.Tests (30)
SerializableTypesTests.cs (1)
191Assert.Equal(FontFamily.GenericSansSerif.Name, result.Font.FontFamily.Name);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
184? TextRenderer.MeasureText(listViewItem.Text, listViewItem.Font).Width
System\Windows\Forms\ListViewItemTests.cs (28)
20Assert.Equal(Control.DefaultFont, item.Font); 59Assert.Equal(font ?? Control.DefaultFont, item.Font); 97Assert.Equal(font ?? Control.DefaultFont, item.Font); 135Assert.Equal(font ?? Control.DefaultFont, item.Font); 173Assert.Equal(font ?? Control.DefaultFont, item.Font); 210Assert.Equal(Control.DefaultFont, item.Font); 247Assert.Equal(Control.DefaultFont, item.Font); 285Assert.Equal(Control.DefaultFont, item.Font); 323Assert.Equal(Control.DefaultFont, item.Font); 360Assert.Equal(Control.DefaultFont, item.Font); 398Assert.Equal(Control.DefaultFont, item.Font); 436Assert.Equal(Control.DefaultFont, item.Font); 473Assert.Equal(Control.DefaultFont, item.Font); 511Assert.Equal(Control.DefaultFont, item.Font); 549Assert.Equal(Control.DefaultFont, item.Font); 587Assert.Equal(Control.DefaultFont, item.Font); 624Assert.Equal(Control.DefaultFont, item.Font); 662Assert.Equal(Control.DefaultFont, item.Font); 700Assert.Equal(Control.DefaultFont, item.Font); 737Assert.Equal(Control.DefaultFont, item.Font); 776Assert.Equal(Control.DefaultFont, item.Font); 806Assert.Equal(Control.DefaultFont, item.Font); 971Assert.Equal(value ?? Control.DefaultFont, item.Font); 975Assert.Equal(Control.DefaultFont, item.Font); 987Assert.Equal(value ?? Control.DefaultFont, item.Font); 991Assert.Equal(value ?? Control.DefaultFont, item.Font); 1007Assert.Equal(value ?? SystemFonts.CaptionFont, item.Font); 1011Assert.Equal(value ?? SystemFonts.CaptionFont, item.Font);