11 references to Width
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (6)
441
if (icoWidthAllowed <= 0 || ico!.
Width
== 0)
447
preferredSize = new Size(0, Math.Min(ico.Height, decimal.ToInt32((decimal)ico.Height * icoWidthAllowed / ico.
Width
)));
482
preferredSize = new Size(Math.Min(ico.
Width
, decimal.ToInt32((decimal)ico.
Width
* icoHeightAllowed / ico.Height)), 0);
499
preferredSize = new Size(ico.
Width
, ico.Height);
844
image is null ? icon!.
Width
: image.Width,
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
454
_provider.Icon = new Icon(icon, (int)(icon.
Width
* factor), (int)(icon.Height * factor));
System.Windows.Forms.Design (3)
System\Drawing\Design\IconEditor.cs (3)
120
if (icon.
Width
< rectangle.Width)
122
rectangle.X += (rectangle.Width - icon.
Width
) / 2;
123
rectangle.Width = icon.
Width
;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
432
return (icon.
Width
== width && icon.Height == height && !alwaysCreateNew) ? icon : new(icon, width, height);