50 references to SizeF
Microsoft.Private.Windows.Core (1)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
182value = new SizeF(classInfo.GetSingle("width"), classInfo.GetSingle("height"));
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)
50return new SizeF(width, height); 98return new SizeF((float)width, (float)height);
System.Drawing.Common (8)
System\Drawing\Graphics.cs (7)
1823return new SizeF(boundingBox.Width, boundingBox.Height); 1885public SizeF MeasureString(string? text, Font font) => MeasureString(text, font, new SizeF(0, 0)); 1889public SizeF MeasureString(ReadOnlySpan<char> text, Font font) => MeasureString(text, font, new SizeF(0, 0)); 1894public SizeF MeasureString(string? text, Font font, int width) => MeasureString(text, font, new SizeF(width, 999999)); 1899MeasureString(text, font, new SizeF(width, 999999)); 1907MeasureString(text, font, new SizeF(width, 999999), format); 1912MeasureString(text, font, new SizeF(width, 999999), format);
System\Drawing\Image.cs (1)
414return new SizeF(width, height);
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\Nrbf\SerializationRecordExtensions.cs (1)
182value = 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)
1081new SizeF(0, proposedConstraints.Height) : 1082new 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)
3797return new SizeF(width, height);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (6)
83internal SizeF _currentAutoScaleFactor = new(1F, 1F); 150? new(1.0F, 1.0F) 151: new(currentAutoScaleDimensions.Width / savedAutoScaleDimensions.Width, currentAutoScaleDimensions.Height / savedAutoScaleDimensions.Height); 332currentAutoScaleDimensions = new SizeF(DeviceDpiInternal, DeviceDpiInternal); 337currentAutoScaleDimensions = new SizeF(ScaleHelper.InitialSystemDpi, ScaleHelper.InitialSystemDpi); 671return 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)
1001int 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);
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
182Child?.Scale(new System.Drawing.SizeF((float)(newScale.X / _currentScale.X), (float)(newScale.Y / _currentScale.Y)));