42 references to Height
System.Drawing.Common.Tests (27)
System\Drawing\IconConverterTests.cs (4)
109Assert.Equal(_icon.Height, newIcon.Height); 121Assert.Equal(_icon.Height, newIcon.Height);
System\Drawing\IconTests.cs (22)
42Assert.Equal(32, icon.Height); 72Assert.Equal(expectedSize.Height, icon.Height); 82Assert.Equal(expectedSize.Height, icon.Height); 100Assert.Equal(32, icon.Height); 110Assert.Equal(32, icon.Height); 127Assert.Equal(expectedSize.Height, icon.Height); 138Assert.Equal(expectedSize.Height, icon.Height); 225Assert.Equal(expectedSize.Height, icon.Height); 237Assert.Equal(expectedSize.Height, icon.Height); 253Assert.Equal(32, icon.Height); 286Assert.Equal(32, clone.Height); 298Assert.Equal(SystemIcons.Hand.Height, clone.Height); 339Assert.Equal(size, icon.Height); 381Assert.Equal(32, icon.Height); 528Assert.Equal(icon.Height, bitmap.Height); 566Assert.Equal(icon.Height, bitmap.Height); 710Assert.Throws<ObjectDisposedException>(() => icon.Height); 721Assert.Equal(icon.Height, loaded.Height); 838Assert.Equal(16, icon.Height); 853Assert.Equal(256, icon.Height);
System\Drawing\SystemIconsTests.cs (1)
46Assert.Equal(256, icon.Height);
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (6)
447preferredSize = new Size(0, Math.Min(ico.Height, decimal.ToInt32((decimal)ico.Height * icoWidthAllowed / ico.Width))); 476if (icoHeightAllowed <= 0 || ico!.Height == 0) 482preferredSize = new Size(Math.Min(ico.Width, decimal.ToInt32((decimal)ico.Width * icoHeightAllowed / ico.Height)), 0); 499preferredSize = new Size(ico.Width, ico.Height); 845image is null ? icon!.Height : image.Height,
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)
126if (icon.Height < rectangle.Height) 128rectangle.Y += (rectangle.Height - icon.Height) / 2; 129rectangle.Height = icon.Height;
System.Windows.Forms.Tests (5)
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (4)
82Assert.Equal(icon.Height, errorIcon.Height); 102Assert.Equal(bitmap.Height, errorIcon.Height); 148Assert.Equal(exclamationIcon.Height, GdiHelper.HimetricToPixelY(height));
System\Windows\Forms\ErrorProviderTests.cs (1)
32Assert.Equal(provider.Icon.Height, PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYSMICON));