21 references to SizeInPoints
System.Drawing.Common.Tests (1)
System\Drawing\FontTests.cs (1)
687
float sizeInPoints = font.
SizeInPoints
;
System.Windows.Forms (11)
System\Windows\Forms\ActiveX\AxHost.cs (2)
3614
cySize = (CY)font.
SizeInPoints
,
3712
: new(f.Name, f.
SizeInPoints
, f.Style, GraphicsUnit.Point, f.GdiCharSet, f.GdiVerticalFont);
System\Windows\Forms\ActiveX\Control.ActiveXFontMarshaler.cs (1)
41
cySize = (CY)font.
SizeInPoints
,
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (2)
119
if (source.
SizeInPoints
!= (float)target->Size)
121
target->Size = (CY)source.
SizeInPoints
;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2763
yHeight = (int)(value.
SizeInPoints
* 20),
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (1)
141
float actualSize = result.
SizeInPoints
;
System\Windows\Forms\Help\Help.cs (1)
89
string captionFont = $"{font.Name}, {font.
SizeInPoints
}, , {(font.Bold ? "BOLD" : "")}{(font.Italic ? "ITALIC" : "")}{(font.Underline ? "UNDERLINE" : "")}";
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2064
font.
SizeInPoints
,
System\Windows\Forms\Rendering\FontCache.Data.cs (2)
78
Debug.Assert(font.
SizeInPoints
> 0.0f, "size has a negative value.");
83
int pixelsY = (int)Math.Ceiling(ScaleHelper.InitialSystemDpi * font.
SizeInPoints
/ 72);
System.Windows.Forms.Primitives.Tests (2)
Interop\User32\SystemParametersInfoWTests.cs (2)
36
Assert.Equal(expected.
SizeInPoints
, actual.
SizeInPoints
);
System.Windows.Forms.Tests (6)
System\Windows\Forms\ApplicationTests.cs (2)
642
Assert.Equal(expected.
SizeInPoints
, actual.
SizeInPoints
);
System\Windows\Forms\Control.ActiveXFontMarshallerTests.cs (1)
32
Assert.Equal(11.25f, outFont.
SizeInPoints
);
System\Windows\Forms\FontDialogTests.cs (2)
251
Assert.Equal(100, result.
SizeInPoints
);
269
Assert.Equal(1, result.
SizeInPoints
);
System\Windows\Forms\RichTextBoxTests.cs (1)
1627
Assert.Equal((int)(Control.DefaultFont.
SizeInPoints
* 20), format1.yHeight);
WindowsFormsIntegration (1)
System\Windows\Integration\Convert.cs (1)
213
return font.
SizeInPoints
* Convert.systemWindowsPixelsPerInch / Convert.systemDrawingPixelsPerInch;