50 references to SizeF
Microsoft.Private.Windows.Core (1)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
182
value = new
SizeF
(classInfo.GetSingle("width"), classInfo.GetSingle("height"));
PresentationUI (11)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (1)
726
this.AutoScaleDimensions = new System.Drawing.
SizeF
(6F, 13F);
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
160
this.AutoScaleDimensions = new System.Drawing.
SizeF
(6F, 13F);
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (1)
216
AutoScaleDimensions = new System.Drawing.
SizeF
(6F, 13F);
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (1)
205
AutoScaleDimensions = new System.Drawing.
SizeF
(6F, 13F);
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (1)
209
this.AutoScaleDimensions = new System.Drawing.
SizeF
(6F, 13F);
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (1)
120
this.AutoScaleDimensions = new System.Drawing.
SizeF
(6F, 13F);
MS\Internal\Documents\RMPermissions.Designer.cs (1)
182
this.AutoScaleDimensions = new System.Drawing.
SizeF
(6F, 13F);
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
369
this.AutoScaleDimensions = new System.Drawing.
SizeF
(6F, 13F);
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (1)
202
AutoScaleDimensions = new System.Drawing.
SizeF
(6F, 13F);
MS\Internal\Documents\SigningDialog.Designer.cs (1)
254
AutoScaleDimensions = new System.Drawing.
SizeF
(6F, 13F);
MS\Internal\Documents\SigningProgress.Designer.cs (1)
55
AutoScaleDimensions = new System.Drawing.
SizeF
(6F, 13F);
System.ComponentModel.TypeConverter (2)
System\Drawing\SizeFConverter.cs (2)
50
return new
SizeF
(width, height);
98
return new
SizeF
((float)width, (float)height);
System.Drawing.Common (8)
System\Drawing\Graphics.cs (7)
1823
return new
SizeF
(boundingBox.Width, boundingBox.Height);
1885
public SizeF MeasureString(string? text, Font font) => MeasureString(text, font, new
SizeF
(0, 0));
1889
public SizeF MeasureString(ReadOnlySpan<char> text, Font font) => MeasureString(text, font, new
SizeF
(0, 0));
1894
public SizeF MeasureString(string? text, Font font, int width) => MeasureString(text, font, new
SizeF
(width, 999999));
1899
MeasureString(text, font, new
SizeF
(width, 999999));
1907
MeasureString(text, font, new
SizeF
(width, 999999), format);
1912
MeasureString(text, font, new
SizeF
(width, 999999), format);
System\Drawing\Image.cs (1)
414
return new
SizeF
(width, height);
System.Drawing.Primitives (8)
System\Drawing\RectangleF.cs (1)
105
readonly get => new
SizeF
(Width, Height);
System\Drawing\Size.cs (3)
47
public static implicit operator SizeF(Size p) => new
SizeF
(p.Width, p.Height);
106
=> new
SizeF
(left.width / right, left.height / right);
210
new
SizeF
(size.width * multiplier, size.height * multiplier);
System\Drawing\SizeF.cs (4)
112
=> new
SizeF
(left.width / right, left.height / right);
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);
189
new
SizeF
(size.width * multiplier, size.height * multiplier);
System.Private.Windows.Core (1)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
182
value = new
SizeF
(classInfo.GetSingle("width"), classInfo.GetSingle("height"));
System.Windows.Forms (14)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (1)
671
screen.Graphics.MeasureString(Text, Font, new
SizeF
(proposedSize.Width, proposedSize.Height),
System\Windows\Forms\Controls\Labels\Label.cs (2)
1081
new
SizeF
(0, proposedConstraints.Height) :
1082
new
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)
265
AutoScaleDimensions = new
SizeF
(7F, 15F);
System\Windows\Forms\Form.cs (1)
3797
return new
SizeF
(width, height);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (6)
83
internal SizeF _currentAutoScaleFactor =
new
(1F, 1F);
150
?
new
(1.0F, 1.0F)
151
:
new
(currentAutoScaleDimensions.Width / savedAutoScaleDimensions.Width, currentAutoScaleDimensions.Height / savedAutoScaleDimensions.Height);
332
currentAutoScaleDimensions = new
SizeF
(DeviceDpiInternal, DeviceDpiInternal);
337
currentAutoScaleDimensions = new
SizeF
(ScaleHelper.InitialSystemDpi, ScaleHelper.InitialSystemDpi);
671
return parentControl is ContainerControl container ? container._currentAutoScaleFactor : new
SizeF
(1F, 1F);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
488
ScaleAbsoluteStyles(new
SizeF
(dx, dy));
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (1)
162
AutoScaleDimensions = new
SizeF
(6F, 13F);
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
238
AutoScaleDimensions = new Drawing.
SizeF
(6F, 13F);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1001
int textWidth = Size.Ceiling(e.Graphics.MeasureString(columnName, e.Font!, new
SizeF
(bounds.Width, bounds.Height))).Width;
System\Windows\Forms\Design\FormatStringDialog.cs (1)
203
AutoScaleDimensions = new Drawing.
SizeF
(6, 13);
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
182
Child?.Scale(new System.Drawing.
SizeF
((float)(newScale.X / _currentScale.X), (float)(newScale.Y / _currentScale.Y)));