8 writes to Font
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
406
set => SubItems[0].
Font
= value;
System.Windows.Forms.Tests (7)
System\Windows\Forms\ListViewItemConverterTests.cs (1)
63
Font
= SystemFonts.MenuFont
System\Windows\Forms\ListViewSubItemTests.cs (6)
275
Font
= value
280
subItem.
Font
= value;
300
subItem.
Font
= value;
304
subItem.
Font
= value;
319
subItem.
Font
= value;
323
subItem.
Font
= value;
33 references to Font
System.Windows.Forms (8)
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (1)
104
Size textSize = TextRenderer.MeasureText(subItem.Text, subItem.
Font
);
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (1)
138
Font font = ItemIndex == -1 ? Item!.Font : SubItem!.
Font
;
System\Windows\Forms\Controls\ListView\ListView.cs (2)
2794
subItemFont = new Font(item.SubItems[0].
Font
, FontStyle.Underline);
2798
subItemFont = item.SubItems[subitem].
Font
;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
403
return _subItems[0].
Font
;
895
subItem.
Font
)
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (1)
128
textWidth = Math.Max(TextRenderer.MeasureText(subItem.Text, subItem.
Font
).Width, textWidth);
System\Windows\Forms\Controls\ListView\ListViewSubItemConverter.cs (1)
50
item.
Font
System.Windows.Forms.Tests (25)
SerializableTypesTests.cs (1)
239
Assert.Equal(FontFamily.GenericSansSerif.Name, result.
Font
.FontFamily.Name);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
200
? TextRenderer.MeasureText(listViewSubItem.Text, listViewSubItem.
Font
).Width
System\Windows\Forms\ListViewSubItemCollectionTests.cs (3)
275
Assert.Equal(font ?? Control.DefaultFont, subItem.
Font
);
405
Assert.Equal(font ?? Control.DefaultFont, collection[0].
Font
);
409
Assert.Equal(font ?? Control.DefaultFont, collection[1].
Font
);
System\Windows\Forms\ListViewSubItemTests.cs (20)
19
Assert.Equal(Control.DefaultFont, subItem.
Font
);
45
Assert.Equal(Control.DefaultFont, subItem.
Font
);
71
Assert.Equal(font ?? Control.DefaultFont, subItem.
Font
);
225
Assert.Equal(SystemFonts.MenuFont, subItem.
Font
);
240
Assert.Equal(Control.DefaultFont, subItem.
Font
);
244
Assert.Equal(Control.DefaultFont, subItem.
Font
);
262
Assert.Equal(SystemFonts.CaptionFont, subItem.
Font
);
266
Assert.Equal(Control.DefaultFont, subItem.
Font
);
277
Assert.Same(value ?? Control.DefaultFont, subItem.
Font
);
281
Assert.Same(value ?? Control.DefaultFont, subItem.
Font
);
301
Assert.Equal(value ?? SystemFonts.CaptionFont, subItem.
Font
);
305
Assert.Equal(value ?? SystemFonts.CaptionFont, subItem.
Font
);
320
Assert.Equal(value ?? Control.DefaultFont, subItem.
Font
);
324
Assert.Equal(value ?? Control.DefaultFont, subItem.
Font
);
543
Assert.Equal(Control.DefaultFont, subItem.
Font
);
548
Assert.Equal(Control.DefaultFont, subItem.
Font
);
560
Assert.Equal(Control.DefaultFont, subItem.
Font
);
565
Assert.Equal(Control.DefaultFont, subItem.
Font
);
591
Assert.Equal(subItem.
Font
, result.
Font
);