20 references to Unit
System.Drawing.Common (14)
System\Drawing\Font.cs (7)
35/// Gets the em-size of this <see cref="Font"/> measured in the units specified by the <see cref="Unit"/> property. 160si.AddValue("Unit", Unit); // Do not rename (binary serialization) 249&& font.Unit == Unit; 255public override int GetHashCode() => HashCode.Combine(Name, Style, Size, Unit); 368Initialize(prototype.FontFamily, prototype.Size, newStyle, prototype.Unit, (byte)FONT_CHARSET.DEFAULT_CHARSET, false); 738if (Unit == GraphicsUnit.Point)
System\Drawing\FontConverter.cs (4)
41switch (font.Unit) 98else if (font.Unit != GraphicsUnit.Point) 123args[3] = font.Unit; 399return props.Sort([nameof(Font.Name), nameof(Font.Size), nameof(Font.Unit)]);
System\Drawing\SystemFonts.cs (3)
210if (defaultFont.Unit != GraphicsUnit.Point) 250else if (dialogFont.Unit != GraphicsUnit.Point) 281: font.Unit != GraphicsUnit.Point ? FontInPoints(font) : font;
System.Windows.Forms (5)
System\Windows\Forms\ActiveX\AxHost.cs (3)
3673if (font.Unit != GraphicsUnit.Point) 3707return f.Unit == GraphicsUnit.Point 3728if (font.Unit != GraphicsUnit.Point)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
72if (sysFont.Unit != GraphicsUnit.Point) 108if (sysFont.Unit != GraphicsUnit.Point)
System.Windows.Forms.Primitives (1)
System\Windows\Forms\FontExtensions.cs (1)
26templateFont.Unit,