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