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