1 write to Height
System.Windows.Forms (1)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
732retval.Height = tm.tmHeight;
89 references to Height
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (2)
95If labelSizeNeeded.Height > Label.Height Then 98Dim dialogHeightChange As Integer = CInt(labelSizeNeeded.Height - Label.Height)
PresentationUI (5)
MS\Internal\Documents\SignatureSummaryDialog.cs (5)
541IntentTextWidth - CellPadding.Left - CellPadding.Right).Height; 551SummaryNameTextWidth - CellPadding.Left - CellPadding.Right).Height; 555SignByTextWidth - CellPadding.Left - CellPadding.Right).Height; 559LocaleTextWidth - CellPadding.Left - CellPadding.Right).Height; 566SummaryNameTextWidth - CellPadding.Left - CellPadding.Right).Height;
System.ComponentModel.TypeConverter (2)
System\Drawing\SizeFConverter.cs (2)
73floatConverter.ConvertToString(context, culture, size.Height) 82return new InstanceDescriptor(ctor, new object[] { size.Width, size.Height });
System.Drawing.Common.Tests (35)
mono\System.Drawing.Imaging\JpegCodecTests.cs (2)
60Assert.Equal(100, bmp.PhysicalDimension.Height); 187Assert.Equal(100, bmp.PhysicalDimension.Height);
mono\System.Drawing\GraphicsTests.cs (32)
1671Assert.Equal((double)near.Height, center.Height, 1); 1674Assert.Equal((double)center.Height, far.Height, 1); 1704Assert.Equal((double)near.Height, center.Height, 0); 1707Assert.Equal((double)center.Height, far.Height, 0); 1735Assert.Equal((double)near.Height, center.Height, 1); 1738Assert.Equal((double)center.Height, far.Height, 1); 1768Assert.Equal((double)near.Height, center.Height, 1); 1771Assert.Equal((double)center.Height, far.Height, 1); 1785? g.MeasureString(s.AsSpan(), _font, new SizeF(80, size.Height), null, out int chars, out int lines) 1786: g.MeasureString(s, _font, new SizeF(80, size.Height), null, out chars, out lines); 1790Assert.Equal((double)size2.Height, size.Height); 1806Assert.Equal(0, size.Height); 1815Assert.Equal((double)expected.Height, size.Height, 1); 1827Assert.Equal((double)expected.Height, size.Height, 1); 1838Assert.Equal((double)expected.Height, size.Height, 1); 1901RectangleF layout_rect = new(0.0f, 0.0f, size.Width, size.Height); 1926RectangleF layout_rect = new(0.0f, 0.0f, size.Width, size.Height); 1967RectangleF layout_rect = new(0.0f, 0.0f, size.Width, size.Height); 2123Assert.True(sz.Height > _font.Height * 2); 2127Assert.True(sz.Height > _font.Height * 2);
mono\System.Imaging\MetafileTest.cs (1)
317RectangleF rect = new(0, 0, size.Width, size.Height);
System.Drawing.Primitives (16)
System\Drawing\PointF.cs (2)
130public static PointF Add(PointF pt, SizeF sz) => new PointF(pt.X + sz.Width, pt.Y + sz.Height); 135public static PointF Subtract(PointF pt, SizeF sz) => new PointF(pt.X - sz.Width, pt.Y - sz.Height);
System\Drawing\RectangleF.cs (3)
48height = size.Height; 109Height = value.Height; 242public void Inflate(SizeF size) => Inflate(size.Width, size.Height);
System\Drawing\Size.cs (3)
157new Size(unchecked((int)Math.Ceiling(value.Width)), unchecked((int)Math.Ceiling(value.Height))); 168public static Size Truncate(SizeF value) => new Size(unchecked((int)value.Width), unchecked((int)value.Height)); 174new Size(unchecked((int)Math.Round(value.Width)), unchecked((int)Math.Round(value.Height)));
System\Drawing\SizeF.cs (8)
117public static bool operator ==(SizeF sz1, SizeF sz2) => sz1.Width == sz2.Width && sz1.Height == sz2.Height; 127public static explicit operator PointF(SizeF size) => new PointF(size.Width, size.Height); 156public static SizeF Add(SizeF sz1, SizeF sz2) => new SizeF(sz1.Width + sz2.Width, sz1.Height + sz2.Height); 161public static SizeF Subtract(SizeF sz1, SizeF sz2) => new SizeF(sz1.Width - sz2.Width, sz1.Height - sz2.Height); 171public override readonly int GetHashCode() => HashCode.Combine(Width, Height);
System.Private.Windows.Core (1)
System\Private\Windows\Core\BinaryFormat\BinaryFormatWriter.cs (1)
250value.Height).Write(writer);
System.Windows.Forms (24)
System\Windows\Forms\Control.cs (4)
5279float dy = factor.Height; 9720float dy = factor.Height; 9759factor.Height) + adornmentSize; 9768factor.Height) + adornmentSize;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1939if (factor.Width != 1F && factor.Height != 1F)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
634if (factor.Width != 1F && factor.Height != 1F)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2071if (factor.Width != 1F && factor.Height != 1F)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
619linkHeight = (int)sizef.Height;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1502MinimumSize = ScaleSize(minSize, factor.Width, factor.Height); 1507MaximumSize = ScaleSize(maxSize, factor.Width, factor.Height);
System\Windows\Forms\Form.cs (4)
449return new Size((int)Math.Round(real.Width), (int)Math.Round(real.Height)); 2984Size newVar = new((int)Math.Round(newVarF.Width), (int)Math.Round(newVarF.Height)); 4552desiredSize.Height = (int)(Size.Height * autoScaleFactor.Height); 4553Debug.WriteLine($"AutoScaleFactor computed for new DPI = {autoScaleFactor.Width} - {autoScaleFactor.Height}");
System\Windows\Forms\Layout\Containers\ContainerControl.cs (5)
115if (value.Width < 0 || value.Height < 0) 152: new(currentAutoScaleDimensions.Width / savedAutoScaleDimensions.Width, currentAutoScaleDimensions.Height / savedAutoScaleDimensions.Height); 824&& (AutoScaleFactor.Width != 1.0F || AutoScaleFactor.Height != 1.0F)) 978if (autoScaleFactor.Width != 1.0F || autoScaleFactor.Height != 1.0F)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1765scale = factor.Height;
System\Windows\Forms\Layout\DefaultLayout.cs (1)
980double heightFactor = factor.Height;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (2)
550rs.Height = (float)Math.Round(lastRowHeight * factor.Height); 554rs.Height = (float)Math.Round(rs.Height * factor.Height);
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
726ScaleDockPadding(factor.Width, factor.Height);
System.Windows.Forms.Design (4)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
366_watermarkSize = new Size((int)Math.Ceiling(size.Width), (int)Math.Ceiling(size.Height));
System\Windows\Forms\Design\FormDocumentDesigner.cs (3)
66return new Size((int)Math.Round(real.Width), (int)Math.Round(real.Height)); 269Size newVar = new((int)Math.Round(newVarF.Width), (int)Math.Round(newVarF.Height)); 276float percY = newVar.Height / ((float)baseVar.Height);