1 write to Height
System.Windows.Forms (1)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
725
retval.
Height
= tm.tmHeight;
89 references to Height
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (2)
95
If labelSizeNeeded.
Height
> Label.Height Then
98
Dim dialogHeightChange As Integer = CInt(labelSizeNeeded.
Height
- Label.Height)
PresentationUI (5)
MS\Internal\Documents\SignatureSummaryDialog.cs (5)
552
IntentTextWidth - CellPadding.Left - CellPadding.Right).
Height
;
562
SummaryNameTextWidth - CellPadding.Left - CellPadding.Right).
Height
;
566
SignByTextWidth - CellPadding.Left - CellPadding.Right).
Height
;
570
LocaleTextWidth - CellPadding.Left - CellPadding.Right).
Height
;
577
SummaryNameTextWidth - CellPadding.Left - CellPadding.Right).
Height
;
System.ComponentModel.TypeConverter (2)
System\Drawing\SizeFConverter.cs (2)
69
string? height = floatConverter.ConvertToString(context, culture, size.
Height
);
78
return new InstanceDescriptor(ctor, new object[] { size.Width, size.
Height
});
System.Drawing.Common.Tests (35)
mono\System.Drawing.Imaging\JpegCodecTests.cs (2)
62
Assert.Equal(100, bmp.PhysicalDimension.
Height
);
189
Assert.Equal(100, bmp.PhysicalDimension.
Height
);
mono\System.Drawing\GraphicsTests.cs (32)
1670
Assert.Equal((double)near.
Height
, center.
Height
, 1);
1673
Assert.Equal((double)center.
Height
, far.
Height
, 1);
1703
Assert.Equal((double)near.
Height
, center.
Height
, 0);
1706
Assert.Equal((double)center.
Height
, far.
Height
, 0);
1734
Assert.Equal((double)near.
Height
, center.
Height
, 1);
1737
Assert.Equal((double)center.
Height
, far.
Height
, 1);
1767
Assert.Equal((double)near.
Height
, center.
Height
, 1);
1770
Assert.Equal((double)center.
Height
, far.
Height
, 1);
1784
? g.MeasureString(s.AsSpan(), _font, new SizeF(80, size.
Height
), null, out int chars, out int lines)
1785
: g.MeasureString(s, _font, new SizeF(80, size.
Height
), null, out chars, out lines);
1789
Assert.Equal((double)size2.
Height
, size.
Height
);
1805
Assert.Equal(0, size.
Height
);
1814
Assert.Equal((double)expected.
Height
, size.
Height
, 1);
1826
Assert.Equal((double)expected.
Height
, size.
Height
, 1);
1837
Assert.Equal((double)expected.
Height
, size.
Height
, 1);
1900
RectangleF layout_rect = new(0.0f, 0.0f, size.Width, size.
Height
);
1925
RectangleF layout_rect = new(0.0f, 0.0f, size.Width, size.
Height
);
1966
RectangleF layout_rect = new(0.0f, 0.0f, size.Width, size.
Height
);
2122
Assert.True(sz.
Height
> _font.Height * 2);
2126
Assert.True(sz.
Height
> _font.Height * 2);
mono\System.Imaging\MetafileTest.cs (1)
317
RectangleF rect = new(0, 0, size.Width, size.
Height
);
System.Drawing.Primitives (16)
System\Drawing\PointF.cs (2)
130
public static PointF Add(PointF pt, SizeF sz) => new PointF(pt.X + sz.Width, pt.Y + sz.
Height
);
135
public static PointF Subtract(PointF pt, SizeF sz) => new PointF(pt.X - sz.Width, pt.Y - sz.
Height
);
System\Drawing\RectangleF.cs (3)
48
height = size.
Height
;
109
Height = value.
Height
;
242
public void Inflate(SizeF size) => Inflate(size.Width, size.
Height
);
System\Drawing\Size.cs (3)
157
new Size(unchecked((int)Math.Ceiling(value.Width)), unchecked((int)Math.Ceiling(value.
Height
)));
168
public static Size Truncate(SizeF value) => new Size(unchecked((int)value.Width), unchecked((int)value.
Height
));
174
new Size(unchecked((int)Math.Round(value.Width)), unchecked((int)Math.Round(value.
Height
)));
System\Drawing\SizeF.cs (8)
117
public static bool operator ==(SizeF sz1, SizeF sz2) => sz1.Width == sz2.Width && sz1.
Height
== sz2.
Height
;
127
public static explicit operator PointF(SizeF size) => new PointF(size.Width, size.
Height
);
156
public static SizeF Add(SizeF sz1, SizeF sz2) => new SizeF(sz1.Width + sz2.Width, sz1.
Height
+ sz2.
Height
);
161
public static SizeF Subtract(SizeF sz1, SizeF sz2) => new SizeF(sz1.Width - sz2.Width, sz1.
Height
- sz2.
Height
);
171
public override readonly int GetHashCode() => HashCode.Combine(Width,
Height
);
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
250
value.
Height
).Write(writer);
System.Windows.Forms (24)
System\Windows\Forms\Control.cs (4)
5347
float dy = factor.
Height
;
9797
float dy = factor.
Height
;
9836
factor.
Height
) + adornmentSize;
9845
factor.
Height
) + adornmentSize;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1939
if (factor.Width != 1F && factor.
Height
!= 1F)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
634
if (factor.Width != 1F && factor.
Height
!= 1F)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2071
if (factor.Width != 1F && factor.
Height
!= 1F)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
619
linkHeight = (int)sizef.
Height
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1499
MinimumSize = ScaleSize(minSize, factor.Width, factor.
Height
);
1504
MaximumSize = ScaleSize(maxSize, factor.Width, factor.
Height
);
System\Windows\Forms\Form.cs (4)
446
return new Size((int)Math.Round(real.Width), (int)Math.Round(real.
Height
));
3059
Size newVar = new((int)Math.Round(newVarF.Width), (int)Math.Round(newVarF.
Height
));
4611
desiredSize.Height = (int)(Size.Height * autoScaleFactor.
Height
);
4612
Debug.WriteLine($"AutoScaleFactor computed for new DPI = {autoScaleFactor.Width} - {autoScaleFactor.
Height
}");
System\Windows\Forms\Layout\Containers\ContainerControl.cs (5)
114
if (value.Width < 0 || value.
Height
< 0)
151
: new(currentAutoScaleDimensions.Width / savedAutoScaleDimensions.Width, currentAutoScaleDimensions.
Height
/ savedAutoScaleDimensions.
Height
);
817
&& (AutoScaleFactor.Width != 1.0F || AutoScaleFactor.
Height
!= 1.0F))
971
if (autoScaleFactor.Width != 1.0F || autoScaleFactor.
Height
!= 1.0F)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1765
scale = factor.
Height
;
System\Windows\Forms\Layout\DefaultLayout.cs (1)
979
double heightFactor = factor.
Height
;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (2)
550
rs.Height = (float)Math.Round(lastRowHeight * factor.
Height
);
554
rs.Height = (float)Math.Round(rs.Height * factor.
Height
);
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
720
ScaleDockPadding(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)
66
return new Size((int)Math.Round(real.Width), (int)Math.Round(real.
Height
));
269
Size newVar = new((int)Math.Round(newVarF.Width), (int)Math.Round(newVarF.
Height
));
276
float percY = newVar.Height / ((float)baseVar.
Height
);