Base:
property
Font
System.Windows.Forms.Control.Font
15 writes to Font
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
480
Font
= DefaultFont;
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
55
Font
= ActionPanel.Font
System.Windows.Forms.Tests (13)
System\Windows\Forms\ListBoxTests.cs (13)
1056
Font
= value
1065
control.
Font
= value;
1085
control.
Font
= value;
1093
control.
Font
= value;
1125
control.
Font
= value;
1136
control.
Font
= value;
1174
control.
Font
= value;
1185
control.
Font
= value;
1211
control.
Font
= font1;
1216
control.
Font
= font1;
1222
control.
Font
= font2;
1227
control.
Font
= null;
1233
control.
Font
= font1;
50 references to Font
PresentationUI (10)
MS\Internal\Documents\SignatureSummaryDialog.cs (10)
540
_listBoxSummary.
Font
,
550
_listBoxSummary.
Font
,
554
_listBoxSummary.
Font
,
558
_listBoxSummary.
Font
,
565
_listBoxSummary.
Font
,
718
_listBoxSummary.
Font
,
725
_listBoxSummary.
Font
,
732
_listBoxSummary.
Font
,
741
_listBoxSummary.
Font
,
757
_listBoxSummary.
Font
,
System.Windows.Forms (7)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (4)
151
return
Font
.Height + _listItemBordersHeight;
478
if (
Font
.Height < 0)
588
Font font =
Font
;
638
float tabDistance = 3.6f *
Font
.Height; // about 7 characters
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
1307
Size textSize = LayoutUtils.OldGetLargestStringSizeInCollection(
Font
, strings);
2282
width = (int)(Math.Ceiling(graphics.MeasureString(GetItemText(item),
Font
).Width));
2362
Font
,
System.Windows.Forms.Design (9)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
212
SizeF sizeW = g.MeasureString(c.ToString(CultureInfo.CurrentCulture), _listBox.
Font
);
220
SizeF size = g.MeasureString(GetDisplayText(item), _listBox.
Font
);
564
SizeF sizeW = g.MeasureString(maxC.ToString(CultureInfo.CurrentCulture), _listBox.
Font
);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
82
using ObjectScope hFont = new(listBox.
Font
.ToHFONT());
System\Drawing\Design\ColorEditor.ColorUI.cs (2)
263
lb.ItemHeight = lb.
Font
.Height;
268
lb.ItemHeight = lb.
Font
.Height;
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
23
ItemHeight = Math.Max(4 + Cursors.Default.Size.Height,
Font
.Height);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1160
int itemWidth = TextRenderer.MeasureText(_selectedColumns.Items[i].ToString(), _selectedColumns.
Font
).Width;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
50
width = Math.Max(width, Size.Ceiling(g.MeasureString(item.ToString(), _typesListBox.
Font
)).Width);
System.Windows.Forms.Tests (24)
CheckedListBoxTests.cs (1)
663
int expectedHeight = checkedListBox.
Font
.Height + checkedListBox._listItemBordersHeight;
System\Windows\Forms\ListBoxTests.cs (23)
71
Assert.Equal(Control.DefaultFont, control.
Font
);
72
Assert.Equal(control.
Font
.Height, control.FontHeight);
1058
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1059
Assert.Equal(control.
Font
.Height, control.FontHeight);
1066
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1067
Assert.Equal(control.
Font
.Height, control.FontHeight);
1086
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1087
Assert.Equal(control.
Font
.Height, control.FontHeight);
1094
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1095
Assert.Equal(control.
Font
.Height, control.FontHeight);
1126
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1127
Assert.Equal(control.
Font
.Height, control.FontHeight);
1137
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1138
Assert.Equal(control.
Font
.Height, control.FontHeight);
1175
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1176
Assert.Equal(control.
Font
.Height, control.FontHeight);
1186
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1187
Assert.Equal(control.
Font
.Height, control.FontHeight);
1212
Assert.Same(font1, control.
Font
);
1217
Assert.Same(font1, control.
Font
);
1223
Assert.Same(font2, control.
Font
);
1228
Assert.Equal(Control.DefaultFont, control.
Font
);
1234
Assert.Same(font1, control.
Font
);