40 references to Size
System.Drawing.Common.Tests (9)
System\Drawing\FontConverterTests.cs (4)
53Assert.Equal(expectedSize, font.Size); 89nameof(Font.Size), 125Assert.Equal(font.Size, newFont.Size);
System\Drawing\FontTests.cs (5)
400Assert.Equal(font.Size, clone.Size); 585VerifyFont(font, family.Name, font.Size, fontStyle, GraphicsUnit.World, charSet, expectedGdiVerticalFont: false); 690Assert.Equal(font.Size, sizeInPoints); 859Assert.Equal(expectedEmSize, font.Size);
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (2)
1869{ oldDpi, font.WithSize(font.Size) } 1878scaledFont = font.WithSize(font.Size * factor);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3749item.Font = local.WithSize(local.Size * factor);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
791childItem.Font = currentFont.WithSize(currentFont.Size * factor);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
305replaceFont = new Font(fallBackFontName, base.Font.Size, base.Font.Style);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
243return textScale == 100 ? null : font.WithSize(font.Size * (textScale / 100.0f));
System.Windows.Forms.Tests (18)
System\Windows\Forms\ApplicationTests.cs (1)
281using Font fakeSysFont = sysFont.WithSize(sysFont.Size * 1.25f);
System\Windows\Forms\AxHostTests.cs (6)
1461Assert.Equal(9.75, result.Size); 1467Assert.Equal(9.75, result.Size); 1490Assert.Equal(9.75, result.Size); 1496Assert.Equal(9.75, result.Size); 1536Assert.Equal(9.75, result.Size); 1557Assert.Equal(9.75, result.Size);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (1)
49Assert.Equal(12, font.Size);
System\Windows\Forms\GroupBoxTests.cs (1)
604using Font newFont = new(originalFont.FontFamily, originalFont.Size + 5, originalFont.Style);
System\Windows\Forms\RichTextBoxTests.cs (9)
4756Assert.Equal(expectedSize, font.Size); 4830Assert.Equal(value?.Size, result1.Size); 4839Assert.Equal(value?.Size, result2.Size); 4863Assert.Equal(value?.Size, result1.Size); 4875Assert.Equal(value?.Size, result2.Size);
System.Windows.Forms.UI.IntegrationTests (4)
Dpi\FormDpiTests.cs (2)
35float initialFontSize = form.Font.Size; 43Assert.NotEqual(initialFontSize, form.Font.Size);
Dpi\ToolStripItemTests.Dpi.cs (2)
52Assert.Equal((float)initialFont.Size * factor, toolStrip.Font.Size, precision: 1);
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
142adapter.Font = new SD.Font(familySource, adapter.Font.Size, adapter.Font.Style);
WinFormsControlsTest (2)
MenuStripAndCheckedListBox.cs (1)
39menuStrip1.Font = new Font(f.FontFamily, f.Size * factor, f.Style);
ScalingBeforeChanges.cs (1)
100Font = new Font(Font.FontFamily, Font.Size * factorY, Font.Style);