4 writes to Width
System.Drawing.Primitives (3)
System\Drawing\RectangleF.cs (3)
108
Width
= value.Width;
235
Width
+= 2 * x;
263
Width
= result.Width;
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1083
focusRectangle.
Width
= requiredSize.Width;
34 references to Width
Microsoft.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
229
value.
Width
,
System.Drawing.Primitives (21)
System\Drawing\Rectangle.cs (3)
184
(int)Math.Ceiling(value.
Width
),
199
(int)value.
Width
,
214
(int)Math.Round(value.
Width
),
System\Drawing\RectangleF.cs (18)
105
readonly get => new SizeF(
Width
, Height);
170
public readonly float Right => X +
Width
;
180
/// Tests whether this <see cref='System.Drawing.RectangleF'/> has a <see cref='System.Drawing.RectangleF.
Width
'/> or a <see cref='System.Drawing.RectangleF.Height'/> of 0.
183
public readonly bool IsEmpty => (
Width
<= 0) || (Height <= 0);
197
left.X == right.X && left.Y == right.Y && left.
Width
== right.
Width
&& left.Height == right.Height;
208
public readonly bool Contains(float x, float y) => X <= x && x < X +
Width
&& Y <= y && y < Y + Height;
221
(X <= rect.X) && (rect.X + rect.
Width
<= X +
Width
) && (Y <= rect.Y) && (rect.Y + rect.Height <= Y + Height);
226
public override readonly int GetHashCode() => HashCode.Combine(X, Y,
Width
, Height);
263
Width = result.
Width
;
274
float x2 = Math.Min(a.X + a.
Width
, b.X + b.
Width
);
290
(rect.X < X +
Width
) && (X < rect.X + rect.
Width
) && (rect.Y < Y + Height) && (Y < rect.Y + rect.Height);
298
float x2 = Math.Max(a.X + a.
Width
, b.X + b.
Width
);
329
public override readonly string ToString() => $"{{X={X},Y={Y},Width={
Width
},Height={Height}}}";
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
229
value.
Width
,
System.Private.Windows.Core.TestUtilities (4)
FluentAssertions\FluentAssertExtensions.cs (4)
42
parent.Subject.
Width
.Should().BeApproximately(expectedValue.
Width
, precision, because, becauseArgs);
65
&& ComparisonHelpers.EqualsFloating(expected.
Width
, actual.
Width
, precision)
System.Windows.Forms (7)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernButtonDarkModeRenderer.cs (2)
222
Math.Max(1, bounds.
Width
- (2 * inset)),
228
float clampedRadius = Math.Clamp(radius, 1, Math.Min(bounds.
Width
, bounds.Height));
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (2)
309
Math.Max(1, bounds.
Width
- (2 * inset)),
315
float clampedRadius = Math.Clamp(radius, 1, Math.Min(bounds.
Width
, bounds.Height));
System\Windows\Forms\Rendering\Button\PopupButtonKeyCapRenderer.cs (1)
276
if (borderRect.
Width
< 1f || borderRect.Height < 1f)
System\Windows\Forms\Rendering\RadioButton\AnimatedRadioGlyphRenderer.cs (2)
161
float dotDiameter = normalBounds.
Width
* 0.5f * _dotScaleCurrent;
163
normalBounds.X + ((normalBounds.
Width
- dotDiameter) / 2f),