11 references to Width
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (6)
441if (icoWidthAllowed <= 0 || ico!.Width == 0) 447preferredSize = new Size(0, Math.Min(ico.Height, decimal.ToInt32((decimal)ico.Height * icoWidthAllowed / ico.Width))); 482preferredSize = new Size(Math.Min(ico.Width, decimal.ToInt32((decimal)ico.Width * icoHeightAllowed / ico.Height)), 0); 499preferredSize = new Size(ico.Width, ico.Height); 844image 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)
120if (icon.Width < rectangle.Width) 122rectangle.X += (rectangle.Width - icon.Width) / 2; 123rectangle.Width = icon.Width;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
432return (icon.Width == width && icon.Height == height && !alwaysCreateNew) ? icon : new(icon, width, height);