44 references to GraphicsUnit
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 (1)
System.Drawing.cs (1)
61
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
GraphicsUnit
))]
System.Windows.Forms (35)
System\Windows\Forms\ActiveX\AxHost.cs (5)
3685
if (font.Unit !=
GraphicsUnit
.Point)
3719
return f.Unit ==
GraphicsUnit
.Point
3721
: new(f.Name, f.SizeInPoints, f.Style,
GraphicsUnit
.Point, f.GdiCharSet, f.GdiVerticalFont);
3740
if (font.Unit !=
GraphicsUnit
.Point)
3811
GraphicsUnit
.Point,
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
3555
graphics.DrawImage(s_errorBmp, iconBounds, 0, 0, s_iconsWidth, s_iconsHeight,
GraphicsUnit
.Pixel);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
840
g.DrawImage(bmFlipXPThemes, backgroundBounds, new Rectangle(bmFlipXPThemes.Width - backgroundBounds.Width, 0, backgroundBounds.Width, backgroundBounds.Height),
GraphicsUnit
.Pixel);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
832
g.DrawImage(image, imageBounds, 0, 0, image.Width, image.Height,
GraphicsUnit
.Pixel, attr);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
711
GraphicsUnit
.Pixel);
1049
g.DrawImage(invertedBitmap, bmpRect, 0, 0, s_iconsWidth, s_iconsHeight,
GraphicsUnit
.Pixel, attr);
1053
g.DrawImage(bmp, bmpRect, 0, 0, s_iconsWidth, s_iconsHeight,
GraphicsUnit
.Pixel, attr);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (2)
95
graphics.DrawImage(invertedImage, imageBounds, 0, 0, image.Width, image.Height,
GraphicsUnit
.Pixel, new ImageAttributes());
99
graphics.DrawImage(image, imageBounds, 0, 0, image.Width, image.Height,
GraphicsUnit
.Pixel, new ImageAttributes());
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1715
graphics.DrawImage(bitmap, rectangle, 0, 0, bitmap.Width, bitmap.Height,
GraphicsUnit
.Pixel);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2231
return new Font(cf.FaceName.ToString(), fontSize, style,
GraphicsUnit
.Point, cf.bCharSet);
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (2)
512
g.DrawImage(image, imageRect, 0, 0, imageRect.Width, imageRect.Height,
GraphicsUnit
.Pixel, attrs);
516
g.DrawImage(image, imageRect, 0, 0, image.Width, image.Height,
GraphicsUnit
.Pixel, attrs);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
72
if (sysFont.Unit !=
GraphicsUnit
.Point)
108
if (sysFont.Unit !=
GraphicsUnit
.Point)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
768
e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty, imageRect.Size),
GraphicsUnit
.Pixel);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (3)
827
e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty, imageRect.Size),
GraphicsUnit
.Pixel);
899
imageRect.Height,
GraphicsUnit
.Pixel, e.ImageAttributes);
1204
srcUnit:
GraphicsUnit
.Pixel,
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 (9)
516
GraphicsUnit
.Pixel);
533
GraphicsUnit
.Pixel);
547
GraphicsUnit
.Pixel,
1499
GraphicsUnit
.Pixel,
1594
GraphicsUnit
.Pixel,
1612
g.DrawImage(image, dest, 0, 0, image.Width, image.Height,
GraphicsUnit
.Pixel, attributes, null, 0);
1668
GraphicsUnit
.Pixel,
1680
GraphicsUnit
.Pixel,
2126
GraphicsUnit
.Point,
System\Windows\Forms\Rendering\DrawingEventArgs.cs (1)
111
_graphics.PageUnit =
GraphicsUnit
.Pixel;
System.Windows.Forms.Design (6)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
143
GraphicsUnit
.Pixel,
System\Drawing\Design\FontNameEditor.cs (1)
72
using Font font = new(fontFamily, fontSize, fontStyle,
GraphicsUnit
.Pixel);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
377
_graphics.DrawImage(_backgroundImage, invalidRect, invalidRect,
GraphicsUnit
.Pixel);
397
_graphics.DrawImage(_backgroundImage, invalidRect, invalidRect,
GraphicsUnit
.Pixel);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
1035
GraphicsUnit
.Pixel);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2276
GraphicsUnit
.Pixel))
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
203
graphics.DrawImage(bitmap, destinationBounds, sourceBounds,
GraphicsUnit
.Pixel);