16 references to Size
System.Drawing.Common (9)
System\Drawing\Font.cs (6)
158
si.AddValue("Size",
Size
); // Do not rename (binary serialization)
248
&& font.
Size
==
Size
255
public override int GetHashCode() => HashCode.Combine(Name, Style,
Size
, Unit);
368
Initialize(prototype.FontFamily, prototype.
Size
, newStyle, prototype.Unit, (byte)FONT_CHARSET.DEFAULT_CHARSET, false);
740
return
Size
;
System\Drawing\FontConverter.cs (3)
39
sb.AppendLiteral(font.
Size
.ToString(culture.NumberFormat));
112
args[1] = font.
Size
;
399
return props.Sort([nameof(Font.Name), nameof(Font.
Size
), nameof(Font.Unit)]);
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (2)
1957
{ oldDpi, font.WithSize(font.
Size
) }
1966
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));
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
140
adapter.Font = new SD.Font(familySource, adapter.Font.
Size
, adapter.Font.Style);