123 references to SizeF
Accessibility_Core_App (13)
CommonControl1.Designer.cs (1)
679this.AutoScaleDimensions = new System.Drawing.SizeF(13F, 32F);
CommonControl2.Designer.cs (1)
258this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
ContainerControls.Designer.cs (1)
800this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
ContainerControls2.Designer.cs (1)
417this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
DataBindingExample.Designer.cs (1)
271this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
DataControls.Designer.cs (1)
349this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
DialogControls.Designer.cs (1)
82this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
Main.Designer.cs (1)
166this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
Menu_Toolbars_controls.Designer.cs (1)
592AutoScaleDimensions = new SizeF(8F, 20F);
MenuForm.Designer.cs (1)
59this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
PrintingControls.Designer.cs (1)
159this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
RemainingControls.Designer.cs (1)
116this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
ToolStripContainer.Designer.cs (1)
591this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
BinaryFormatTests (4)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (4)
199new SizeF(7F, 8F), 200new SizeF(float.MaxValue, float.MinValue), 201new SizeF(-float.MaxValue, float.PositiveInfinity), 202new SizeF(0, 0),
DesignSurface (1)
MainForm.Designer.cs (1)
294this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
NativeHost.ManagedControl (1)
ManagedControl.Designer.cs (1)
48this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
PresentationUI (11)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (1)
726this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
160this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (1)
216AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (1)
205AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (1)
209this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (1)
120this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
MS\Internal\Documents\RMPermissions.Designer.cs (1)
182this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
369this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (1)
202AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
MS\Internal\Documents\SigningDialog.Designer.cs (1)
254AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
MS\Internal\Documents\SigningProgress.Designer.cs (1)
55AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
System.ComponentModel.TypeConverter (2)
System\Drawing\SizeFConverter.cs (2)
52return new SizeF(values[0], values[1]); 102return new SizeF((float)width, (float)height);
System.Drawing.Common.Tests (9)
mono\System.Drawing\GraphicsTests.cs (2)
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);
System\Drawing\Drawing2D\GraphicsPathTests.cs (1)
2386path.AddRoundedRectangle(new RectangleF(10, 10, 20, 20), new(5, 5));
System\Drawing\GraphicsTests.cs (2)
2983graphics.DrawRoundedRectangle(Pens.Red, new RectangleF(0, 0, 10, 10), new(2, 2)); 3001graphics.FillRoundedRectangle(Brushes.Green, new RectangleF(0, 0, 10, 10), new(2, 2));
System\Drawing\IconConverterTests.cs (2)
116Assert.Throws<NotSupportedException>(() => _icoConv.ConvertFrom(null, CultureInfo.InvariantCulture, new SizeF(10, 10))); 128Assert.Throws<NotSupportedException>(() => _icoConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new SizeF(10, 10)));
System\Drawing\ImageConverterTests.cs (2)
143Assert.Throws<NotSupportedException>(() => _imgConv.ConvertFrom(null, CultureInfo.InvariantCulture, new SizeF(10, 10))); 150Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, new SizeF(10, 10)));
System.Drawing.Primitives (8)
System\Drawing\RectangleF.cs (1)
105readonly get => new SizeF(Width, Height);
System\Drawing\Size.cs (3)
47public static implicit operator SizeF(Size p) => new SizeF(p.Width, p.Height); 106=> new SizeF(left.width / right, left.height / right); 210new SizeF(size.width * multiplier, size.height * multiplier);
System\Drawing\SizeF.cs (4)
112=> new SizeF(left.width / right, left.height / right); 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); 189new SizeF(size.width * multiplier, size.height * multiplier);
System.Private.Windows.Core (1)
System\Private\Windows\Core\Nrbf\SerializationRecordExtensions.cs (1)
229value = new SizeF(classInfo.GetSingle("width"), classInfo.GetSingle("height"));
System.Windows.Forms (14)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (1)
671screen.Graphics.MeasureString(Text, Font, new SizeF(proposedSize.Width, proposedSize.Height),
System\Windows\Forms\Controls\Labels\Label.cs (2)
1083new SizeF(0, proposedConstraints.Height) : 1084new SizeF(proposedConstraints.Width, proposedConstraints.Height);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.MeasureTextHelper.cs (2)
16=> MeasureTextSimple(owner, g, text, font, new SizeF(0, 0)); 19=> MeasureText(owner, g, text, font, new SizeF(width, 999999));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
265AutoScaleDimensions = new SizeF(7F, 15F);
System\Windows\Forms\Form.cs (1)
3746return new SizeF(width, height);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (6)
84internal SizeF _currentAutoScaleFactor = new(1F, 1F); 151? new(1.0F, 1.0F) 152: new(currentAutoScaleDimensions.Width / savedAutoScaleDimensions.Width, currentAutoScaleDimensions.Height / savedAutoScaleDimensions.Height); 333currentAutoScaleDimensions = new SizeF(_deviceDpi, _deviceDpi); 338currentAutoScaleDimensions = new SizeF(ScaleHelper.InitialSystemDpi, ScaleHelper.InitialSystemDpi); 678return parentControl is ContainerControl container ? container._currentAutoScaleFactor : new SizeF(1F, 1F);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
488ScaleAbsoluteStyles(new SizeF(dx, dy));
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (1)
162AutoScaleDimensions = new SizeF(6F, 13F);
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
238AutoScaleDimensions = new Drawing.SizeF(6F, 13F);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1004int textWidth = Size.Ceiling(e.Graphics.MeasureString(columnName, e.Font!, new SizeF(bounds.Width, bounds.Height))).Width;
System\Windows\Forms\Design\FormatStringDialog.cs (1)
203AutoScaleDimensions = new Drawing.SizeF(6, 13);
System.Windows.Forms.Tests (15)
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (2)
127new SizeF(float.MaxValue, float.MinValue), 906public SizeF SizeF = new(1, 2);
System\Windows\Forms\ContainerControlTests.cs (3)
28Assert.Equal(new SizeF(1, 1), control.AutoScaleFactor); 240yield return new object[] { AutoScaleMode.Dpi, new SizeF(96, 96) }; 250AutoScaleDimensions = new SizeF(1, 2),
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
34Assert.Equal(new SizeF(1, 1), control.AutoScaleFactor);
System\Windows\Forms\DomainUpDownTests.cs (1)
37_sub.AutoScaleFactor.Should().Be(new SizeF(1, 1));
System\Windows\Forms\FormTests.cs (1)
32Assert.Equal(new SizeF(1, 1), control.AutoScaleFactor);
System\Windows\Forms\PropertyGridTests.cs (1)
33Assert.Equal(new SizeF(1, 1), control.AutoScaleFactor);
System\Windows\Forms\ScrollableControlTests.cs (2)
2196control.Scale(new SizeF(10, 20)); 2209control.Scale(new SizeF(10, 20));
System\Windows\Forms\ScrollBarTests.cs (1)
2597SizeF factor = new(((float)deviceDpiNew) / deviceDpiOld, ((float)deviceDpiNew) / deviceDpiOld);
System\Windows\Forms\ToolStripPanelTests.cs (1)
25Assert.Equal(new SizeF(1, 1), control.AutoScaleFactor);
System\Windows\Forms\UpDownBaseTests.cs (1)
23Assert.Equal(new SizeF(1, 1), control.AutoScaleFactor);
System\Windows\Forms\UserControlTests.cs (1)
29Assert.Equal(new SizeF(1, 1), control.AutoScaleFactor);
TrimTest (1)
Form1.Designer.cs (1)
98AutoScaleDimensions = new SizeF(7F, 15F);
TrimTestBinaryDeserialization (1)
Form1.Designer.cs (1)
58AutoScaleDimensions = new SizeF(7F, 15F);
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
185Child.Scale(new System.Drawing.SizeF((float)(newScale.X / _currentScale.X), (float)(newScale.Y / _currentScale.Y)));
WinFormsControlsTest (37)
AnchorLayoutTests.Designer.cs (1)
138this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 25F);
Buttons.Designer.cs (1)
44this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
Calendar.Designer.cs (1)
232this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
ChartControl.Designer.cs (1)
413this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
ComboBoxes.Designer.cs (1)
266this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
ComboBoxesWithScrollBars.Designer.cs (1)
347this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
DataGridViewInVirtualModeTest.Designer.cs (1)
83this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
DataGridViewTest.Designer.cs (1)
207this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
DateTimePicker.Designer.cs (1)
95this.AutoScaleDimensions = new SizeF(7F, 15F);
DesignTimeAligned.Designer.cs (1)
94this.AutoScaleDimensions = new System.Drawing.SizeF(192F, 192F);
Dialogs.Designer.cs (1)
148this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
DockLayoutTests.Designer.cs (1)
95this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 25F);
DragDrop.Designer.cs (1)
197AutoScaleDimensions = new SizeF(7F, 15F);
ErrorProviderTest.Designer.cs (1)
128this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
FormBorderStyles.Designer.cs (1)
55this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
ListBoxes.Designer.cs (1)
200this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
MainForm.Designer.cs (1)
48this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
MdiChild.Designer.cs (1)
140this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
MdiParent.Designer.cs (1)
38this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
MediaPlayer.Designer.cs (1)
53this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
MenuStripAndCheckedListBox.Designer.cs (1)
283this.AutoScaleDimensions = new System.Drawing.SizeF(192F, 192F);
MessageBoxes.Designer.cs (1)
51this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
MultipleControls.Designer.cs (1)
299this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
Password.Designer.cs (1)
237AutoScaleDimensions = new SizeF(8F, 20F);
PictureBoxes.Designer.cs (1)
81this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
PropertyGrid.Designer.cs (1)
49this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
RichTextBoxes.Designer.cs (1)
62this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
ScalingBeforeChanges.cs (1)
102checkBox1.Scale(new SizeF(factorX, factorY));
ScalingBeforeChanges.Designer.cs (1)
49this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
ScrollableControls.Designer.cs (1)
436AutoScaleDimensions = new SizeF(7F, 15F);
ScrollBars.Designer.cs (1)
135this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
Splitter.Designer.cs (1)
60this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
TextBoxes.Designer.cs (1)
151this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
ToolStripSeparatorPreferredSize.cs (1)
85AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
ToolStripTests.Designer.cs (1)
435this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
ToolTipTests.Designer.cs (1)
159this.AutoScaleDimensions = new System.Drawing.SizeF(17F, 41F);
TrackBars.Designer.cs (1)
247this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);