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