66 references to Point
PresentationUI (1)
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)));
System.Drawing.Common.Tests (32)
mono\System.Drawing\GraphicsTests.cs (1)
1067
BeginContainer_GraphicsUnit(GraphicsUnit.
Point
);
System\Drawing\FontConverterTests.cs (17)
100
Font font = new($"Courier New", 8.25f, FontStyle.Regular, GraphicsUnit.
Point
);
142
{ new Font("Courier", 1.0f, FontStyle.Regular, GraphicsUnit.
Point
), 2 },
145
{ new Font("Courier", 1.0f, FontStyle.Regular, GraphicsUnit.
Point
, gdiCharSet: 1 /* DEFAULT_CHARSET */), 2 },
154
{ $"Courier New", "Courier New", 8.25f, GraphicsUnit.
Point
, FontStyle.Regular },
155
{ $"Courier New{Separator} 11", "Courier New", 11f, GraphicsUnit.
Point
, FontStyle.Regular },
159
{ $"Courier New{Separator} style=Bold", "Courier New", 8.25f, GraphicsUnit.
Point
, FontStyle.Bold },
164
{ $"11px", "Microsoft Sans Serif", 8.25f, GraphicsUnit.
Point
, FontStyle.Regular },
165
{ $"Style=Bold", "Microsoft Sans Serif", 8.25f, GraphicsUnit.
Point
, FontStyle.Regular },
166
{ $"arIAL{Separator} 10{Separator} style=bold", "Arial", 10f, GraphicsUnit.
Point
, FontStyle.Bold },
167
{ $"Arial{Separator} 10{Separator}", "Arial", 10f, GraphicsUnit.
Point
, FontStyle.Regular },
168
{ $"Arial{Separator}", "Arial", 8.25f, GraphicsUnit.
Point
, FontStyle.Regular },
169
{ $"Arial{Separator} 10{Separator} style=12", "Arial", 10f, GraphicsUnit.
Point
, FontStyle.Underline | FontStyle.Strikeout },
170
{ $"Courier New{Separator} Style=Bold", "Courier New", 8.25f, GraphicsUnit.
Point
, FontStyle.Bold }, // FullFramework style keyword is case sensitive.
171
{ $"11px{Separator} Style=Bold", "Microsoft Sans Serif", 8.25f, GraphicsUnit.
Point
, FontStyle.Bold}
178
data.Add($"{Separator} 10{Separator} style=bold", "", 10f, GraphicsUnit.
Point
, FontStyle.Bold);
182
data.Add($"{Separator} 10{Separator} style=bold", "Microsoft Sans Serif", 10f, GraphicsUnit.
Point
, FontStyle.Bold);
239
[InlineData("Point", GraphicsUnit.
Point
)]
System\Drawing\FontTests.cs (13)
65
VerifyFont(font, fontFamily.Name, emSize, FontStyle.Regular, GraphicsUnit.
Point
, 1, false);
80
VerifyFont(font, fontFamily.Name, emSize, FontStyle.Regular, GraphicsUnit.
Point
, 1, false);
107
VerifyFont(font, fontFamily.Name, emSize, style, GraphicsUnit.
Point
, 1, false);
122
VerifyFont(font, fontFamily.Name, emSize, style, GraphicsUnit.
Point
, 1, false);
135
yield return new object[] { FontFamily.GenericSerif, 4, GraphicsUnit.
Point
};
175
yield return new object[] { FontFamily.GenericSerif, 4, FontStyle.Strikeout, GraphicsUnit.
Point
};
217
yield return new object[] { FontFamily.GenericSerif, 4, FontStyle.Strikeout, GraphicsUnit.
Point
, 10 };
259
yield return new object[] { FontFamily.GenericSerif, 4, FontStyle.Strikeout, GraphicsUnit.
Point
, 10, false };
681
[InlineData(GraphicsUnit.
Point
)]
688
if (unit == GraphicsUnit.
Point
)
705
using Font font = new(family, 10, fontStyle, GraphicsUnit.
Point
, gdiCharSet, gdiVerticalFont);
879
using Font font1 = new(family1, 1, FontStyle.Bold, GraphicsUnit.
Point
);
882
using Font font2 = new(family2, 1, FontStyle.Bold, GraphicsUnit.
Point
);
System\Drawing\GraphicsTests.cs (1)
701
[InlineData(GraphicsUnit.
Point
)]
System.Windows.Forms (11)
System\Windows\Forms\ActiveX\AxHost.cs (5)
3676
if (font.Unit != GraphicsUnit.
Point
)
3710
return f.Unit == GraphicsUnit.
Point
3712
: new(f.Name, f.SizeInPoints, f.Style, GraphicsUnit.
Point
, f.GdiCharSet, f.GdiVerticalFont);
3731
if (font.Unit != GraphicsUnit.
Point
)
3799
GraphicsUnit.
Point
,
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2204
return new Font(cf.FaceName.ToString(), fontSize, style, GraphicsUnit.
Point
, cf.bCharSet);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
73
if (sysFont.Unit != GraphicsUnit.
Point
)
109
if (sysFont.Unit != GraphicsUnit.
Point
)
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (2)
144
result = new Font(result.FontFamily, MinSize, result.Style, GraphicsUnit.
Point
);
149
result = new Font(result.FontFamily, MaxSize, result.Style, GraphicsUnit.
Point
);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2066
GraphicsUnit.
Point
,
System.Windows.Forms.Tests (14)
System\Windows\Forms\AxHostTests.cs (2)
1475
using Font font = new("Arial", 10, FontStyle.Bold | FontStyle.Underline | FontStyle.Italic | FontStyle.Strikeout, GraphicsUnit.
Point
, 10);
1544
using Font font = new("Arial", 10, FontStyle.Bold | FontStyle.Underline | FontStyle.Italic | FontStyle.Strikeout, GraphicsUnit.
Point
, 10);
System\Windows\Forms\Control.ActiveXFontMarshallerTests.cs (1)
22
using Font font = new("Arial", 11.0f, GraphicsUnit.
Point
);
System\Windows\Forms\FontDialogTests.cs (2)
253
Assert.Equal(GraphicsUnit.
Point
, result.Unit);
271
Assert.Equal(GraphicsUnit.
Point
, result.Unit);
System\Windows\Forms\RichTextBoxTests.cs (9)
1581
yield return new object[] { "Arial", 8.25f, FontStyle.Regular, GraphicsUnit.
Point
, 1, 165, 0 };
1582
yield return new object[] { "Arial", 8.25f, FontStyle.Bold, GraphicsUnit.
Point
, 1, 165, CFE_EFFECTS.CFE_BOLD };
1583
yield return new object[] { "Arial", 8.25f, FontStyle.Italic, GraphicsUnit.
Point
, 1, 165, CFE_EFFECTS.CFE_ITALIC };
1584
yield return new object[] { "Arial", 8.25f, FontStyle.Strikeout, GraphicsUnit.
Point
, 1, 165, CFE_EFFECTS.CFE_STRIKEOUT };
1585
yield return new object[] { "Arial", 8.25f, FontStyle.Underline, GraphicsUnit.
Point
, 1, 165, CFE_EFFECTS.CFE_UNDERLINE };
1586
yield return new object[] { "Arial", 8.25f, FontStyle.Bold | FontStyle.Italic | FontStyle.Regular | FontStyle.Strikeout | FontStyle.Underline, GraphicsUnit.
Point
, 10, 165, CFE_EFFECTS.CFE_BOLD | CFE_EFFECTS.CFE_ITALIC | CFE_EFFECTS.CFE_UNDERLINE | CFE_EFFECTS.CFE_STRIKEOUT };
4758
Assert.Equal(GraphicsUnit.
Point
, font.Unit);
4815
yield return new object[] { "Arial", 8.25f, true, FontStyle.Bold | FontStyle.Italic | FontStyle.Regular | FontStyle.Strikeout | FontStyle.Underline, GraphicsUnit.
Point
, 10, 1 };
4920
yield return new object[] { new Font("Arial", 8.25f, FontStyle.Bold | FontStyle.Italic | FontStyle.Regular | FontStyle.Strikeout | FontStyle.Underline, GraphicsUnit.
Point
, 10), 165, CFE_EFFECTS.CFE_BOLD | CFE_EFFECTS.CFE_ITALIC | CFE_EFFECTS.CFE_UNDERLINE | CFE_EFFECTS.CFE_STRIKEOUT };
System.Windows.Forms.UI.IntegrationTests (1)
Dpi\ToolStripItemTests.Dpi.cs (1)
45
using Font initialFont = toolStrip.Font = new("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.
Point
);
WinFormsControlsTest (7)
DataGridViewInVirtualModeTest.Designer.cs (1)
87
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.
Point
, ((byte)(204)));
DataGridViewTest.Designer.cs (5)
58
dataGridViewCellStyle1.Font = new System.Drawing.Font("Cascadia Code", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.
Point
, ((byte)(204)));
76
dataGridViewCellStyle3.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.
Point
, ((byte)(204)));
148
this.changeFontButton.Font = new System.Drawing.Font("Consolas", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.
Point
, ((byte)(204)));
196
this.resetFontButton.Font = new System.Drawing.Font("Consolas", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.
Point
, ((byte)(204)));
216
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.
Point
, ((byte)(204)));
MultipleControls.Designer.cs (1)
109
this.richTextBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.
Point
);