4 writes to Width
System.Drawing.Primitives (3)
System\Drawing\RectangleF.cs (3)
108Width = value.Width; 235Width += 2 * x; 263Width = result.Width;
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1083focusRectangle.Width = requiredSize.Width;
34 references to Width
Microsoft.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
229value.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)
105readonly get => new SizeF(Width, Height); 170public 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. 183public readonly bool IsEmpty => (Width <= 0) || (Height <= 0); 197left.X == right.X && left.Y == right.Y && left.Width == right.Width && left.Height == right.Height; 208public 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); 226public override readonly int GetHashCode() => HashCode.Combine(X, Y, Width, Height); 263Width = result.Width; 274float 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); 298float x2 = Math.Max(a.X + a.Width, b.X + b.Width); 329public override readonly string ToString() => $"{{X={X},Y={Y},Width={Width},Height={Height}}}";
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
229value.Width,
System.Private.Windows.Core.TestUtilities (4)
FluentAssertions\FluentAssertExtensions.cs (4)
42parent.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)
222Math.Max(1, bounds.Width - (2 * inset)), 228float clampedRadius = Math.Clamp(radius, 1, Math.Min(bounds.Width, bounds.Height));
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (2)
309Math.Max(1, bounds.Width - (2 * inset)), 315float clampedRadius = Math.Clamp(radius, 1, Math.Min(bounds.Width, bounds.Height));
System\Windows\Forms\Rendering\Button\PopupButtonKeyCapRenderer.cs (1)
276if (borderRect.Width < 1f || borderRect.Height < 1f)
System\Windows\Forms\Rendering\RadioButton\AnimatedRadioGlyphRenderer.cs (2)
161float dotDiameter = normalBounds.Width * 0.5f * _dotScaleCurrent; 163normalBounds.X + ((normalBounds.Width - dotDiameter) / 2f),