51 instantiations of 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 (9)
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 (5)
77
public static explicit operator SizeF(Vector2 vector) => new
SizeF
(vector);
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)));
248 references to SizeF
Microsoft.Private.Windows.Core (8)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (4)
234
/// Writes a <see cref="
SizeF
"/> in binary format.
236
public static void WriteSizeF(Stream stream,
SizeF
value)
241
new ClassInfo(1, typeof(
SizeF
).FullName!, s_sizeMemberNames),
737
case
SizeF
sizeF:
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (2)
91
{ Types.ToTypeName($"{Types.SizeFType}"), typeof(
SizeF
) },
158
|| type == typeof(
SizeF
)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (2)
164
/// Tries to get this object as a <see cref="
SizeF
"/>.
175
|| !classInfo.TypeNameMatches(typeof(
SizeF
))
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
93
Dim labelSizeNeeded As
SizeF
= labelGraphics.MeasureString(prompt, Label.Font, Label.Width)
netstandard (1)
netstandard.cs (1)
756
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
SizeF
))]
System.ComponentModel.TypeConverter (3)
System\Drawing\SizeFConverter.cs (3)
60
if (value is
SizeF
size)
75
ConstructorInfo? ctor = typeof(
SizeF
).GetConstructor([typeof(float), typeof(float)]);
108
PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(
SizeF
), attributes);
System.Data.Common (1)
System\Data\TypeLimiter.cs (1)
180
typeof(
SizeF
),
System.Drawing (1)
System.Drawing.cs (1)
145
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
SizeF
))]
System.Drawing.Common (38)
Special\Forwards.cs (1)
13
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
SizeF
))]
System\Drawing\Drawing2D\GraphicsPath.cs (2)
660
/// <inheritdoc cref="AddRoundedRectangle(RectangleF,
SizeF
)"/>
669
public void AddRoundedRectangle(RectangleF rect,
SizeF
radius)
System\Drawing\Graphics.cs (34)
721
/// <inheritdoc cref="DrawRoundedRectangle(Pen, RectangleF,
SizeF
)"/>
731
public void DrawRoundedRectangle(Pen pen, RectangleF rect,
SizeF
radius)
1195
/// <inheritdoc cref="FillRoundedRectangle(Brush, RectangleF,
SizeF
)"/>
1205
public void FillRoundedRectangle(Brush brush, RectangleF rect,
SizeF
radius)
1763
/// <inheritdoc cref="MeasureString(string?, Font,
SizeF
, StringFormat?)"/>
1764
public
SizeF
MeasureString(
1767
SizeF
layoutArea,
1774
/// <inheritdoc cref="MeasureString(string?, Font,
SizeF
, StringFormat?, out int, out int)"/>
1775
public
SizeF
MeasureString(
1778
SizeF
layoutArea,
1785
public
SizeF
MeasureStringInternal(
1797
return
SizeF
.Empty;
1827
/// <inheritdoc cref="MeasureString(string?, Font,
SizeF
, StringFormat?)"/>
1828
public
SizeF
MeasureString(string? text, Font font, PointF origin, StringFormat? stringFormat)
1833
public
SizeF
MeasureString(ReadOnlySpan<char> text, Font font, PointF origin, StringFormat? stringFormat)
1837
/// <inheritdoc cref="MeasureString(string?, Font,
SizeF
, StringFormat?)"/>
1838
public
SizeF
MeasureString(string? text, Font font,
SizeF
layoutArea) => MeasureString(text, font, layoutArea, null);
1841
/// <inheritdoc cref="MeasureString(string?, Font,
SizeF
)"/>
1842
public
SizeF
MeasureString(ReadOnlySpan<char> text, Font font,
SizeF
layoutArea) => MeasureString(text, font, layoutArea, null);
1849
/// <see cref="
SizeF
"/> structure that specifies the maximum layout area for the text.
1852
public
SizeF
MeasureString(string? text, Font font,
SizeF
layoutArea, StringFormat? stringFormat) =>
1856
/// <inheritdoc cref="MeasureString(string?, Font,
SizeF
, StringFormat?)"/>
1857
public
SizeF
MeasureString(ReadOnlySpan<char> text, Font font,
SizeF
layoutArea, StringFormat? stringFormat) =>
1867
/// This method returns a <see cref="
SizeF
"/> structure that represents the size, in the units specified by the
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));
1898
public
SizeF
MeasureString(ReadOnlySpan<char> text, Font font, int width) =>
1906
public
SizeF
MeasureString(string? text, Font font, int width, StringFormat? format) =>
1911
public
SizeF
MeasureString(ReadOnlySpan<char> text, Font font, int width, StringFormat? format) =>
System\Drawing\Image.cs (1)
405
public
SizeF
PhysicalDimension
System.Drawing.Primitives (99)
System\Drawing\PointF.cs (8)
94
/// Translates a <see cref='System.Drawing.PointF'/> by a given <see cref='System.Drawing.
SizeF
'/> .
96
public static PointF operator +(PointF pt,
SizeF
sz) => Add(pt, sz);
99
/// Translates a <see cref='System.Drawing.PointF'/> by the negative of a given <see cref='System.Drawing.
SizeF
'/> .
101
public static PointF operator -(PointF pt,
SizeF
sz) => Subtract(pt, sz);
128
/// Translates a <see cref='System.Drawing.PointF'/> by a given <see cref='System.Drawing.
SizeF
'/> .
130
public static PointF Add(PointF pt,
SizeF
sz) => new PointF(pt.X + sz.Width, pt.Y + sz.Height);
133
/// Translates a <see cref='System.Drawing.PointF'/> by the negative of a given <see cref='System.Drawing.
SizeF
'/> .
135
public static PointF Subtract(PointF pt,
SizeF
sz) => new PointF(pt.X - sz.Width, pt.Y - sz.Height);
System\Drawing\RectangleF.cs (3)
43
public RectangleF(PointF location,
SizeF
size)
103
public
SizeF
Size
242
public void Inflate(
SizeF
size) => Inflate(size.Width, size.Height);
System\Drawing\Size.cs (16)
45
/// Converts the specified <see cref='System.Drawing.Size'/> to a <see cref='System.Drawing.
SizeF
'/>.
47
public static implicit operator
SizeF
(Size p) => new SizeF(p.Width, p.Height);
84
/// Multiplies <see cref="Size"/> by a <see cref="float"/> producing <see cref="
SizeF
"/>.
88
/// <returns>Product of type <see cref="
SizeF
"/>.</returns>
89
public static
SizeF
operator *(float left, Size right) => Multiply(right, left);
92
/// Multiplies <see cref="Size"/> by a <see cref="float"/> producing <see cref="
SizeF
"/>.
96
/// <returns>Product of type <see cref="
SizeF
"/>.</returns>
97
public static
SizeF
operator *(Size left, float right) => Multiply(left, right);
100
/// Divides <see cref="Size"/> by a <see cref="float"/> producing <see cref="
SizeF
"/>.
104
/// <returns>Result of type <see cref="
SizeF
"/>.</returns>
105
public static
SizeF
operator /(Size left, float right)
156
public static Size Ceiling(
SizeF
value) =>
168
public static Size Truncate(
SizeF
value) => new Size(unchecked((int)value.Width), unchecked((int)value.Height));
173
public static Size Round(
SizeF
value) =>
204
/// Multiplies <see cref="Size"/> by a <see cref="float"/> producing <see cref="
SizeF
"/>.
209
private static
SizeF
Multiply(Size size, float multiplier) =>
System\Drawing\SizeF.cs (72)
16
public struct SizeF : IEquatable<
SizeF
>
19
/// Initializes a new instance of the <see cref='System.Drawing.
SizeF
'/> class.
21
public static readonly
SizeF
Empty;
26
/// Initializes a new instance of the <see cref='System.Drawing.
SizeF
'/> class from the specified
27
/// existing <see cref='System.Drawing.
SizeF
'/>.
29
public SizeF(
SizeF
size)
36
/// Initializes a new instance of the <see cref='System.Drawing.
SizeF
'/> class from the specified
46
/// Initializes a new instance of the <see cref='System.Drawing.
SizeF
'/> struct from the specified
56
/// Creates a new <see cref="System.Numerics.Vector2"/> from this <see cref="System.Drawing.
SizeF
"/>.
61
/// Initializes a new instance of the <see cref='System.Drawing.
SizeF
'/> class from the specified dimensions.
70
/// Converts the specified <see cref="System.Drawing.
SizeF
"/> to a <see cref="System.Numerics.Vector2"/>.
72
public static explicit operator Vector2(
SizeF
size) => size.ToVector2();
75
/// Converts the specified <see cref="System.Numerics.Vector2"/> to a <see cref="System.Drawing.
SizeF
"/>.
77
public static explicit operator
SizeF
(Vector2 vector) => new SizeF(vector);
80
/// Performs vector addition of two <see cref='System.Drawing.
SizeF
'/> objects.
82
public static
SizeF
operator +(
SizeF
sz1,
SizeF
sz2) => Add(sz1, sz2);
85
/// Contracts a <see cref='System.Drawing.
SizeF
'/> by another <see cref='System.Drawing.
SizeF
'/>
87
public static
SizeF
operator -(
SizeF
sz1,
SizeF
sz2) => Subtract(sz1, sz2);
90
/// Multiplies <see cref="
SizeF
"/> by a <see cref="float"/> producing <see cref="
SizeF
"/>.
93
/// <param name="right">Multiplicand of type <see cref="
SizeF
"/>.</param>
94
/// <returns>Product of type <see cref="
SizeF
"/>.</returns>
95
public static
SizeF
operator *(float left,
SizeF
right) => Multiply(right, left);
98
/// Multiplies <see cref="
SizeF
"/> by a <see cref="float"/> producing <see cref="
SizeF
"/>.
100
/// <param name="left">Multiplicand of type <see cref="
SizeF
"/>.</param>
102
/// <returns>Product of type <see cref="
SizeF
"/>.</returns>
103
public static
SizeF
operator *(
SizeF
left, float right) => Multiply(left, right);
106
/// Divides <see cref="
SizeF
"/> by a <see cref="float"/> producing <see cref="
SizeF
"/>.
108
/// <param name="left">Dividend of type <see cref="
SizeF
"/>.</param>
110
/// <returns>Result of type <see cref="
SizeF
"/>.</returns>
111
public static
SizeF
operator /(
SizeF
left, float right)
115
/// Tests whether two <see cref='System.Drawing.
SizeF
'/> objects are identical.
117
public static bool operator ==(
SizeF
sz1,
SizeF
sz2) => sz1.Width == sz2.Width && sz1.Height == sz2.Height;
120
/// Tests whether two <see cref='System.Drawing.
SizeF
'/> objects are different.
122
public static bool operator !=(
SizeF
sz1,
SizeF
sz2) => !(sz1 == sz2);
125
/// Converts the specified <see cref='System.Drawing.
SizeF
'/> to a <see cref='System.Drawing.PointF'/>.
127
public static explicit operator PointF(
SizeF
size) => new PointF(size.Width, size.Height);
130
/// Tests whether this <see cref='System.Drawing.
SizeF
'/> has zero width and height.
136
/// Represents the horizontal component of this <see cref='System.Drawing.
SizeF
'/>.
145
/// Represents the vertical component of this <see cref='System.Drawing.
SizeF
'/>.
154
/// Performs vector addition of two <see cref='System.Drawing.
SizeF
'/> objects.
156
public static
SizeF
Add(
SizeF
sz1,
SizeF
sz2) => new SizeF(sz1.Width + sz2.Width, sz1.Height + sz2.Height);
159
/// Contracts a <see cref='System.Drawing.
SizeF
'/> by another <see cref='System.Drawing.
SizeF
'/>.
161
public static
SizeF
Subtract(
SizeF
sz1,
SizeF
sz2) => new SizeF(sz1.Width - sz2.Width, sz1.Height - sz2.Height);
164
/// Tests to see whether the specified object is a <see cref='System.Drawing.
SizeF
'/> with the same dimensions
165
/// as this <see cref='System.Drawing.
SizeF
'/>.
167
public override readonly bool Equals([NotNullWhen(true)] object? obj) => obj is
SizeF
&& Equals((
SizeF
)obj);
169
public readonly bool Equals(
SizeF
other) => this == other;
178
/// Creates a human-readable string that represents this <see cref='System.Drawing.
SizeF
'/>.
183
/// Multiplies <see cref="
SizeF
"/> by a <see cref="float"/> producing <see cref="
SizeF
"/>.
185
/// <param name="size">Multiplicand of type <see cref="
SizeF
"/>.</param>
188
private static
SizeF
Multiply(
SizeF
size, float multiplier) =>
System.Private.Windows.Core (8)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (4)
234
/// Writes a <see cref="
SizeF
"/> in binary format.
236
public static void WriteSizeF(Stream stream,
SizeF
value)
241
new ClassInfo(1, typeof(
SizeF
).FullName!, s_sizeMemberNames),
737
case
SizeF
sizeF:
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (2)
91
{ Types.ToTypeName($"{Types.SizeFType}"), typeof(
SizeF
) },
158
|| type == typeof(
SizeF
)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (2)
164
/// Tries to get this object as a <see cref="
SizeF
"/>.
175
|| !classInfo.TypeNameMatches(typeof(
SizeF
))
System.Windows.Forms (78)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1152
protected override Rectangle GetScaledBounds(Rectangle bounds,
SizeF
factor, BoundsSpecified specified) => bounds;
System\Windows\Forms\Control.cs (9)
5363
protected virtual Rectangle GetScaledBounds(Rectangle bounds,
SizeF
factor, BoundsSpecified specified)
9622
public void Scale(
SizeF
factor)
9662
internal virtual void Scale(
SizeF
includedFactor,
SizeF
excludedFactor, Control requestingControl, bool causedByFontChanged = false)
9698
internal void ScaleChildControls(
SizeF
includedFactor,
SizeF
excludedFactor, Control requestingControl, bool causedByFontChanged = false)
9747
internal void ScaleControl(
SizeF
includedFactor,
SizeF
excludedFactor)
9797
protected virtual void ScaleControl(
SizeF
factor, BoundsSpecified specified)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1935
protected override void ScaleControl(
SizeF
factor, BoundsSpecified specified)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
631
protected override void ScaleControl(
SizeF
factor, BoundsSpecified specified)
System\Windows\Forms\Controls\Labels\Label.cs (1)
1080
SizeF
bounds = (proposedConstraints.Width == 1) ?
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1058
focusRectangle = new RectangleF(regionRectangles[0].Location,
SizeF
.Empty);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
1457
protected override Rectangle GetScaledBounds(Rectangle bounds,
SizeF
factor, BoundsSpecified specified)
2067
protected override void ScaleControl(
SizeF
factor, BoundsSpecified specified)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.MeasureTextHelper.cs (6)
15
public static
SizeF
MeasureText(PropertyGrid owner, Graphics g, string? text, Font font)
18
public static
SizeF
MeasureText(PropertyGrid owner, Graphics g, string? text, Font font, int width)
21
public static
SizeF
MeasureTextSimple(PropertyGrid owner, Graphics g, string? text, Font font,
SizeF
size)
31
public static
SizeF
MeasureText(PropertyGrid owner, Graphics g, string? text, Font font,
SizeF
size)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1191
SizeF
textSize = PropertyGrid.MeasureTextHelper.MeasureText(OwnerGrid, graphics, text, font);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
301
SizeF
sizef = PropertyGrid.MeasureTextHelper.MeasureText(_ownerGrid, g, _detailsButton.Text, _detailsButton.Font);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
92
SizeF
sizef = PropertyGrid.MeasureTextHelper.MeasureText(OwnerPropertyGrid, g, _titleLabel.Text, Font, width);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1094
SizeF
sizeF = PropertyGrid.MeasureTextHelper.MeasureText(OwnerGrid, g, gridEntry.PropertyLabel, Font);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
614
SizeF
sizef = PropertyGrid.MeasureTextHelper.MeasureText(
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1491
protected override void ScaleControl(
SizeF
factor, BoundsSpecified specified)
System\Windows\Forms\Form.cs (7)
443
SizeF
real = GetAutoScaleSize(Font);
3043
SizeF
newVarF = GetAutoScaleSize(Font);
3776
public static
SizeF
GetAutoScaleSize(Font font)
4589
SizeF
currentAutoScaleDimensions = GetCurrentAutoScaleDimensions(fontwrapper.Handle);
4590
SizeF
autoScaleFactor = GetCurrentAutoScaleFactor(currentAutoScaleDimensions, AutoScaleDimensions);
5202
protected override Rectangle GetScaledBounds(Rectangle bounds,
SizeF
factor, BoundsSpecified specified)
5218
protected override void ScaleControl(
SizeF
factor, BoundsSpecified specified)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (34)
35
private
SizeF
_autoScaleDimensions =
SizeF
.Empty;
37
private
SizeF
_currentAutoScaleDimensions =
SizeF
.Empty;
83
internal
SizeF
_currentAutoScaleFactor = new(1F, 1F);
109
public
SizeF
AutoScaleDimensions
133
protected
SizeF
AutoScaleFactor
137
SizeF
current = CurrentAutoScaleDimensions;
138
SizeF
saved = AutoScaleDimensions;
148
internal static
SizeF
GetCurrentAutoScaleFactor(
SizeF
currentAutoScaleDimensions,
SizeF
savedAutoScaleDimensions)
182
_autoScaleDimensions =
SizeF
.Empty;
185
_currentAutoScaleDimensions =
SizeF
.Empty;
306
public
SizeF
CurrentAutoScaleDimensions
319
internal
SizeF
GetCurrentAutoScaleDimensions(HFONT fontHandle)
321
SizeF
currentAutoScaleDimensions;
658
private
SizeF
GetParentAutoScaleFactor()
700
private unsafe
SizeF
GetFontAutoScaleDimensions(HFONT fontHandle)
702
SizeF
retval =
SizeF
.Empty;
822
child.Scale(AutoScaleFactor,
SizeF
.Empty, this);
858
_currentAutoScaleDimensions =
SizeF
.Empty;
962
SizeF
autoScaleFactor = AutoScaleFactor;
978
SizeF
included = includedBounds ? autoScaleFactor :
SizeF
.Empty;
979
SizeF
excluded = excludedBounds ? autoScaleFactor :
SizeF
.Empty;
1064
internal override void Scale(
SizeF
includedFactor,
SizeF
excludedFactor, Control requestingControl, bool causedByFontChanged = false)
1077
SizeF
ourExcludedFactor = excludedFactor;
1078
SizeF
childIncludedFactor = includedFactor;
1100
SizeF
ourExternalContainerFactor = ourExcludedFactor;
1104
ourExternalContainerFactor =
SizeF
.Empty;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1751
protected override void ScaleControl(
SizeF
factor, BoundsSpecified specified)
System\Windows\Forms\Layout\DefaultLayout.cs (1)
980
public static void ScaleAnchorInfo(IArrangedElement element,
SizeF
factor)
System\Windows\Forms\MDI\MDIClient.cs (2)
205
/// <see cref="ScaleControl(
SizeF
,BoundsSpecified)" /> to enforce a minimum and maximum size.
209
protected override void ScaleControl(
SizeF
factor, BoundsSpecified specified)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (2)
494
protected override void ScaleControl(
SizeF
factor, BoundsSpecified specified)
500
private void ScaleAbsoluteStyles(
SizeF
factor)
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
716
protected override void ScaleControl(
SizeF
factor, BoundsSpecified specified)
System\Windows\Forms\Scrolling\ScrollBar.cs (2)
130
protected override void ScaleControl(
SizeF
factor, BoundsSpecified specified)
477
protected override Rectangle GetScaledBounds(Rectangle bounds,
SizeF
factor, BoundsSpecified specified)
System.Windows.Forms.Design (10)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
226
SizeF
sizeW = g.MeasureString(c.ToString(CultureInfo.CurrentCulture), _listBox.Font);
234
SizeF
size = g.MeasureString(GetDisplayText(item), _listBox.Font);
578
SizeF
sizeW = g.MeasureString(maxC.ToString(CultureInfo.CurrentCulture), _listBox.Font);
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
358
SizeF
size;
System\Windows\Forms\Design\DocumentDesigner.cs (2)
64
private
SizeF
AutoScaleDimensions
75
return
SizeF
.Empty;
System\Windows\Forms\Design\FormDocumentDesigner.cs (3)
65
SizeF
real = Form.GetAutoScaleSize(((Form)Component).Font);
262
private static void ApplyAutoScaling(
SizeF
baseVar, Form form)
268
SizeF
newVarF = Form.GetAutoScaleSize(form.Font);
System\Windows\Forms\Design\ImageListImage.cs (1)
48
public
SizeF
PhysicalDimension => Image.Size;