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