8 references to Width
System.Windows.Forms (8)
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (6)
507if (icoWidthAllowed <= 0 || ico.Width == 0) 513preferredSize = new Size(0, Math.Min(ico.Height, Decimal.ToInt32((decimal)ico.Height * icoWidthAllowed / ico.Width))); 548preferredSize = new Size(Math.Min(ico.Width, Decimal.ToInt32((decimal)ico.Width * icoHeightAllowed / ico.Height)), 0); 565preferredSize = new Size(ico.Width, ico.Height); 898Rectangle imgBounds2 = ImgBounds(imgBounds, (img == null) ? ico.Width : img.Width, (img == null) ? ico.Height : img.Height, imageLayout, cellStyle);
winforms\Managed\System\WinForms\StatusBarPanel.cs (1)
204if (value != null && (((Icon)value).Height > SystemInformation.SmallIconSize.Height || ((Icon)value).Width > SystemInformation.SmallIconSize.Width)) {
winforms\Managed\System\WinForms\TrustManagerMoreInformation.cs (1)
408icon = new Icon(icon, icon.Width / 2, icon.Height / 2);