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