15 overrides of Font
System.Windows.Forms (14)
System\Windows\Forms\ActiveX\AxHost.cs (1)
339public override Font Font
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2623public override Font Font
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
428public override Font Font
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
278public override Font Font
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
200public override Font Font
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
389public override Font Font
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
156public override Font Font
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
516public override Font Font
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
95public override Font Font
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
216public override Font Font
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBar.cs (1)
71public override Drawing.Font Font
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1246public override Font Font
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
637public override Font Font
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
163public override Font Font
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ComponentTray.cs (1)
1943public override Font Font
55 writes to Font
PresentationUI (9)
MS\Internal\Documents\DialogBaseForm.cs (1)
102c.Font = System.Drawing.SystemFonts.DialogFont;
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (1)
150_instructionlabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
MS\Internal\Documents\SignatureSummaryDialog.cs (6)
236Font = columnHeaderFont, 247Font = columnHeaderFont, 258Font = columnHeaderFont, 269Font = columnHeaderFont, 288Font = columnHeaderFont, 299Font = columnHeaderFont,
MS\Internal\Documents\SigningDialog.cs (1)
261_signerlabel.Font = new Font(System.Drawing.SystemFonts.DialogFont, System.Drawing.SystemFonts.DialogFont.Style | FontStyle.Bold);
System.Windows.Forms (31)
System\Windows\Forms\ActiveX\AxHost.cs (1)
342set => base.Font = value;
System\Windows\Forms\Control.cs (1)
9165Font = null;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2626set => base.Font = value;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
73Font = dataGridViewCellStyle.Font;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
98Font = dataGridViewCellStyle.Font;
System\Windows\Forms\Controls\Labels\FocusableLabel.cs (2)
42Font = new Font(Font, FontStyle.Underline); 52Font = new Font(Font, FontStyle.Regular);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
433base.Font = value;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
281set => base.Font = value;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
203set => base.Font = value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
17Font = controls[0].Font;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
232_titleLabel.Font = new(Font, FontStyle.Bold);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
599Font = Font 3505ToolTip.Font = Font; 3533ToolTip.Font = Font; 4394EditTextBox.Font = GetBoldFont(); 4398EditTextBox.Font = Font;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
556Font = _gridView.Font;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (3)
396base.Font = value; 402base.Font = null; 416base.Font = GetCharFormatFont(selectionOnly: false);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
159set => base.Font = value;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
532set => base.Font = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
48Font = ToolStripManager.DefaultFont
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
192set => ControlInternal.Font = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
100base.Font = value;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
219set => base.Font = value;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1249set => base.Font = value;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
175Font = uiFont;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
640set => base.Font = value;
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
166set => base.Font = value;
System.Windows.Forms.Design (11)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
65Font = (Font)uiService.Styles["DialogFont"]!;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
24Font = font;
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (2)
94_titleLabel.Font = new Font(ActionPanel.Font, FontStyle.Bold); 95_subtitleLabel.Font = ActionPanel.Font;
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (2)
54_label.Font = GetFont(); 68_label.Font = GetFont();
System\Windows\Forms\Design\ComponentTray.cs (2)
154Font = (Font)uiService.Styles["DialogFont"]; 1410Font = (Font)uiService.Styles["DialogFont"];
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
61Font = uiFont;
System\Windows\Forms\Design\DataGridViewCellStyleEditor.cs (1)
30_builderDialog.Font = (Font)uiService.Styles["DialogFont"]!;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
799Font = uiFont;
WindowsFormsIntegration (4)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (4)
140adapter.Font = new SD.Font(familySource, adapter.Font.Size, adapter.Font.Style); 171adapter.Font = new SD.Font(CurrentFontFamily, CurrentFontSize, style); 192adapter.Font = new SD.Font(CurrentFontFamily, CurrentFontSize, style); 208adapter.Font = new SD.Font(CurrentFontFamily, (float)pointSize, CurrentFontStyle);
178 references to Font
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
93Dim labelSizeNeeded As SizeF = labelGraphics.MeasureString(prompt, Label.Font, Label.Width)
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
228Font columnHeaderFont = new System.Drawing.Font(Font, System.Drawing.FontStyle.Bold);
System.Windows.Forms (135)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
60public override LOGFONTW Logfont => _owningControl.TryGetTarget(out Control? target) ? target.Font.ToLogicalFont() : default;
System\Windows\Forms\ActiveX\AxHost.cs (3)
341get => base.Font; 2092return GetIFontFromFont(richParent.Font); 3319qaContainer.pFont = GetIFontPointerFromFont(GetParentContainer()._parent.Font);
System\Windows\Forms\Control.cs (10)
1908Font currentFont = Font; 2070localFontHeight = Font.Height; 3043oldFont = Font; 3064if (checkFont && !oldFont!.Equals(Font)) 4243Font oldFont = Font; 4274if (!oldFont.Equals(Font)) 5551/// Gets the control <see cref="Font"/>. If the font is inherited, traverse through the parent hierarchy and 5554/// <param name="fontDpi">Dpi of the control for which <see cref="Font"/> is evaluated.</param> 5555/// <returns>The control's <see cref="Font"/></returns> 10798/// <param name="scaledFont">The scaled <see cref="Font"/> value to be set.</param>
System\Windows\Forms\Controls\Buttons\Button.cs (1)
96Size requiredSize = TextRenderer.MeasureText(Text, Font);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (8)
476g.DrawString(Control.Text, Control.Font, highlightBrush, r, stringFormat); 480g.DrawString(Control.Text, Control.Font, shadowBrush, r, stringFormat); 486g.DrawString(Control.Text, Control.Font, brush, r, stringFormat); 498TextRenderer.DrawTextInternal(e, Control.Text, Control.Font, r, colors.ButtonShadow, formatFlags); 503TextRenderer.DrawTextInternal(e, Control.Text, Control.Font, r, colors.Highlight, formatFlags); 506TextRenderer.DrawTextInternal(e, Control.Text, Control.Font, r, colors.ButtonShadow, formatFlags); 511TextRenderer.DrawTextInternal(e, Control.Text, Control.Font, r, color, formatFlags); 617Font = Control.Font,
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
302Size textSize = TextRenderer.MeasureText(Text, Font);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
271Size textSize = TextRenderer.MeasureText(Text, Font);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
93? _owningComboBox.Font.ToLogicalFont()
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
779Size textSize = TextRenderer.MeasureText(LayoutUtils.TestString, Font, new Size(short.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine); 790Size textSize = TextRenderer.MeasureText(LayoutUtils.TestString, Font, new Size(short.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine); 823using (var hfont = GdiCache.GetHFONTScope(Font)) 3573Font, 3811Font,
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (8)
1530_dataGridViewState1[State1_AmbientColumnHeadersFont] = value?.Font == base.Font; 1551Font = base.Font, 2013defaultCellStyleTmp.Font = base.Font; 2043_dataGridViewState1[State1_AmbientFont] = value?.Font == base.Font; 2064Font = base.Font, 2101Font = base.Font, 2625get => base.Font; 3317_dataGridViewState1[State1_AmbientRowHeadersFont] = value?.Font == base.Font;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
15085if (_dataGridViewState1[State1_AmbientColumnHeadersFont] && ColumnHeadersDefaultCellStyle.Font != base.Font) 15087ColumnHeadersDefaultCellStyle.Font = base.Font; 15093if (_dataGridViewState1[State1_AmbientRowHeadersFont] && RowHeadersDefaultCellStyle.Font != base.Font) 15095RowHeadersDefaultCellStyle.Font = base.Font; 15101if (_dataGridViewState1[State1_AmbientFont] && DefaultCellStyle.Font != base.Font) 15103DefaultCellStyle.Font = base.Font;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
606Size preferredSize = TextRenderer.MeasureText(comboBox.GetItemText(item), comboBox.Font);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
207get => _calendarFont ?? Font;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (12)
150_fontHeight = Font.Height; 151_cachedFont = Font; 153else if (!ReferenceEquals(_cachedFont, Font)) 157_fontHeight = Font.Height; 158_cachedFont = Font; 436Font, 447Font, 485textSize = Size.Ceiling(graphics.MeasureString(Text, Font, textRectangle.Width, format)); 489graphics.DrawString(Text, Font, textBrush, textRectangle, format); 493ControlPaint.DrawStringDisabled(graphics, Text, Font, backColor, textRectangle, format); 513using var hfont = GdiCache.GetHFONTScope(Font); 525Font,
System\Windows\Forms\Controls\Labels\FocusableLabel.cs (2)
42Font = new Font(Font, FontStyle.Underline); 52Font = new Font(Font, FontStyle.Regular);
System\Windows\Forms\Controls\Labels\Label.cs (9)
927if (!MeasureTextCache.TextRequiresWordBreak(Text, Font, constrainingSize, flags)) 1063using var hfont = GdiCache.GetHFONTScope(Font); 1073requiredSize = MeasureTextCache.GetTextSize(Text, Font, proposedConstraints, format); 1084requiredSize = Size.Ceiling(screen.Graphics.MeasureString(Text, Font, bounds, stringFormat)); 1121using var hfont = GdiCache.GetHFONTScope(Font); 1284e.GraphicsInternal.DrawString(Text, Font, brush, face, stringFormat); 1288ControlPaint.DrawStringDisabled(e.GraphicsInternal, Text, Font, color, face, stringFormat); 1297TextRenderer.DrawTextInternal(e, Text, Font, face, color, flags: flags); 1305TextRenderer.DrawTextInternal(e, Text, Font, face, disabledTextForeColor, flags: flags);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (9)
533using Font alwaysUnderlined = new Font(Font, Font.Style | FontStyle.Underline); 577using var hfont = GdiCache.GetHFONTScope(Font); 1019LinkUtilities.EnsureLinkFonts(Font, LinkBehavior, ref _linkFont, ref _hoverLinkFont); 1069Size requiredSize = MeasureTextCache.GetTextSize(Text, Font, finalRectSize, CreateTextFormatFlags(finalRectSize)); 1123ControlPaint.DrawStringDisabled(g, Text, Font, DisabledColor, ClientRectWithPadding, stringFormat); 1138Font, 1351g.DrawString(Text, Font, foreBrush, ClientRectWithPadding, stringFormat); 1366Font,
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
430get => base.Font;
System\Windows\Forms\Controls\ListView\ListView.cs (4)
229_odCacheFont = Font; 2609_odCacheFont = Font; 5074rectInvalid.Inflate(1, Font.Height + 1); 5521int textWidth = Size.Ceiling(g.MeasureString(text, Font)).Width;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
396return _listView.Font;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.cs (1)
150return _owner?._listView?.Font ?? Control.DefaultFont;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1187using (var hfont = GdiCache.GetHFONTScope(Font))
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
280get => base.Font;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
202get => base.Font;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
95int lineHeight = (int)(1.5 * Font.Height);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
301SizeF sizef = PropertyGrid.MeasureTextHelper.MeasureText(_ownerGrid, g, _detailsButton.Text, _detailsButton.Font);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
17Font = controls[0].Font;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (4)
92SizeF sizef = PropertyGrid.MeasureTextHelper.MeasureText(OwnerPropertyGrid, g, _titleLabel.Text, Font, width); 134_lineHeight = Font.Height + LogicalToDeviceUnits(2); 232_titleLabel.Font = new(Font, FontStyle.Bold); 238_lineHeight = Font.Height + 2;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (9)
460_cachedRowHeight = Font.Height + 2; 599Font = Font 1094SizeF sizeF = PropertyGrid.MeasureTextHelper.MeasureText(OwnerGrid, g, gridEntry.PropertyLabel, Font); 1325public Font GetBaseFont() => Font; 1327public Font GetBoldFont() => _boldFont ??= new Font(Font, FontStyle.Bold); 3505ToolTip.Font = Font; 3533ToolTip.Font = Font; 3732var hFont = (HFONT)Font.ToHfont(); 4398EditTextBox.Font = Font;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
556Font = _gridView.Font;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
174ClientRectangle.Width <= PropertyGridView.SelectedGridEntry.GetValueTextWidth(Text, graphics, Font))
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
391get => base.Font;
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
158get => base.Font;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1958Font,
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
891TextRenderer.DrawTextInternal(hdc, PlaceholderText, Font, rectangle, SystemColors.GrayText, TextRenderer.DefaultQuality, flags);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
851Size textSize = TextRenderer.MeasureText(Text, Font, proposedConstraints, format);
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (2)
258int fontHeight = Owner.Font.Height; 265? Owner.Font.ToLogicalFont()
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
522return base.Font;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
191get => ControlInternal.Font;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
97get => base.Font;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
218get => base.Font;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2815Size textSize = TextRenderer.MeasureText(node.Text, node.TreeView!.Font); 2827Font font = node.NodeFont ?? node.TreeView.Font;
System\Windows\Forms\Controls\UpDown\DomainUpDown.cs (1)
512int width = LayoutUtils.OldGetLargestStringSizeInCollection(Font, Items).Width;
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (3)
809int textWidth = TextRenderer.MeasureText(GetNumberText(testNumber), Font).Width; 817int shortTextWidth = TextRenderer.MeasureText(shortText, Font).Width; 846Size digitSize = TextRenderer.MeasureText(charSpan, Font);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1248get => base.Font;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
209int titleWidth = (int)graphics.MeasureString(title, Font).Width;
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (2)
213textSize = Size.Ceiling(TextRenderer.MeasureText(messageText, Font, textSize, TextFormatFlags.WordBreak)); 219textSize = Size.Ceiling(g.MeasureString(messageText, Font, textSize.Width));
System\Windows\Forms\Form.cs (3)
443SizeF real = GetAutoScaleSize(Font); 3043SizeF newVarF = GetAutoScaleSize(Font); 4577Font fontForDpi = GetScaledFont(Font, deviceDpiNew, deviceDpiOld);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
1393Font fontForDpi = GetScaledFont(Font, deviceDpiNew, deviceDpiOld);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
611g.DrawString(message, Font, brush, rect, format);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
639get => base.Font;
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
165get => base.Font;
System.Windows.Forms.Design (38)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (6)
204_listBox.ItemHeight = Font.Height + SystemInformation.BorderSize.Width * 2; 229int w = 4 + charactersInNumber * (Font.Height / 2); 581int w = 4 + charactersInNumber * (Font.Height / 2); 622g.DrawString(e.Index.ToString(CultureInfo.CurrentCulture), Font, SystemBrushes.ControlText, 630g.DrawString(itemText, Font, textBrush, 635int width = offset + (int)g.MeasureString(itemText, Font).Width;
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
62if (_showSplit && !string.IsNullOrEmpty(Text) && TextRenderer.MeasureText(Text, Font).Width + PushButtonWidth > preferredSize.Width) 233TextRenderer.DrawText(pevent, Text, Font, bounds, SystemColors.ControlText, formatFlags);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
55Font = ActionPanel.Font 337_dropDownHolder = new DropDownHolder(hostedControl, ActionPanel, borderColor, ActionPanel.Font, this);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (2)
70ButtonRenderer.DrawButton(g, new Rectangle(-1, -1, Width + 2, Height + 2), "…", Font, Focused, buttonState); 118Font,
System\ComponentModel\Design\DesignerActionPanel.HeaderLine.cs (1)
16protected override Font GetFont() => new(ActionPanel.Font, FontStyle.Bold);
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (2)
94_titleLabel.Font = new Font(ActionPanel.Font, FontStyle.Bold); 95_subtitleLabel.Font = ActionPanel.Font;
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (2)
52if (_label.Font is not null) 60return ActionPanel.Font;
System\Drawing\Design\ColorEditor.ColorUI.cs (3)
95_lbSystem.ItemHeight = Font.Height + 2; 96_lbCommon.ItemHeight = Font.Height + 2; 259Font font = Font;
System\Windows\Forms\Design\ComponentTray.cs (1)
1945get => _tray.Font;
System\Windows\Forms\Design\ControlDesigner.cs (2)
2274Control.Font.FontFamily, 2275Math.Max(SystemInformation.ToolWindowCaptionHeight - SystemInformation.BorderSize.Height - 2, Control.Font.Height),
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (2)
47_sampleDataGridViewSelected.Size = new Drawing.Size(100, Font.Height + 9); 48_sampleDataGridView.Size = new Drawing.Size(100, Font.Height + 9);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
809_selectedColumns.ItemHeight = Font.Height + OWNERDRAWVERTICALBUFFER;
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1859TextRenderer.DrawText(e.Graphics, Text, Font, rect, ForeColor, formatFlags);
System\Windows\Forms\Design\DesignerUtils.cs (1)
531using ObjectScope hFont = new(ctrl.Font.ToHFONT());
System\Windows\Forms\Design\FormDocumentDesigner.cs (2)
65SizeF real = Form.GetAutoScaleSize(((Form)Component).Font); 268SizeF newVarF = Form.GetAutoScaleSize(form.Font);
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (8)
437_newItemTypes.ItemHeight = Math.Max(s_iconHeight, Font.Height); 548+ g.MeasureString(item.Type.Name, _newItemTypes.Font).Width + GdiPlusExtraSpace); 549dropDownHeight += (Font.Height + s_separatorHeight) + 2 * s_imagePaddingY; 636Font measureFont = Font; 781TextRenderer.DrawText(e.Graphics, itemText, Font, textBounds, textColor, format); 864using Font boldFont = new(_selectedItemName.Font, FontStyle.Bold); 893int itemTextWidth = (int)e.Graphics.MeasureString(itemName, _selectedItemName.Font).Width; 903TextRenderer.DrawText(e.Graphics, itemName, _selectedItemName.Font, textRect, SystemColors.WindowText, flags);
WindowsFormsIntegration (3)
System\Windows\Integration\ElementHost.cs (1)
935OnPropertyChanged("Font", this.Font);
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (2)
140adapter.Font = new SD.Font(familySource, adapter.Font.Size, adapter.Font.Style);