46 references to Width
System.Drawing.Common.Tests (31)
mono\System.Drawing\BitmapTests.cs (4)
1193size = icon.Width; 1211size = icon.Width; 1229size = icon.Width; 1247size = icon.Width;
System\Drawing\IconConverterTests.cs (4)
110Assert.Equal(_icon.Width, newIcon.Width); 122Assert.Equal(_icon.Width, newIcon.Width);
System\Drawing\IconTests.cs (22)
41Assert.Equal(32, icon.Width); 71Assert.Equal(expectedSize.Width, icon.Width); 81Assert.Equal(expectedSize.Width, icon.Width); 99Assert.Equal(32, icon.Width); 109Assert.Equal(32, icon.Width); 126Assert.Equal(expectedSize.Width, icon.Width); 137Assert.Equal(expectedSize.Width, icon.Width); 224Assert.Equal(expectedSize.Width, icon.Width); 236Assert.Equal(expectedSize.Width, icon.Width); 254Assert.Equal(32, icon.Width); 285Assert.Equal(32, clone.Width); 297Assert.Equal(SystemIcons.Hand.Width, clone.Width); 338Assert.Equal(size, icon.Width); 380Assert.Equal(32, icon.Width); 527Assert.Equal(icon.Width, bitmap.Width); 565Assert.Equal(icon.Width, bitmap.Width); 709Assert.Throws<ObjectDisposedException>(() => icon.Width); 722Assert.Equal(icon.Width, loaded.Width); 837Assert.Equal(16, icon.Width); 852Assert.Equal(256, icon.Width);
System\Drawing\SystemIconsTests.cs (1)
45Assert.Equal(256, icon.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)
458_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.Tests (5)
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (4)
83Assert.Equal(icon.Width, errorIcon.Width); 103Assert.Equal(bitmap.Width, errorIcon.Width); 149Assert.Equal(exclamationIcon.Width, GdiHelper.HimetricToPixelX(width));
System\Windows\Forms\ErrorProviderTests.cs (1)
31Assert.Equal(provider.Icon.Width, PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CXSMICON));