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)
1073focusRectangle.Width = requiredSize.Width;
106 references to Width
PresentationCore (1)
System\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
168value.Width,
PresentationCore.Tests (5)
BinaryFormat\SystemDrawingTests.cs (2)
33Assert.Equal(input.Width, ((RectangleF)read).Width);
FluentAssertions\FluentAssertExtensions.cs (3)
37parent.Subject.Width.Should().BeApproximately(expectedValue.Width, precision, because, becauseArgs); 59&& ComparisonHelpers.EqualsFloating(expected.Width, actual.Width, precision)
System.Drawing.Common.Tests (75)
mono\System.Drawing.Imaging\BmpCodecTests.cs (5)
54Assert.Equal(173, rect.Width); 120Assert.Equal(173, rect.Width); 186Assert.Equal(173, rect.Width); 372Assert.Equal(173, rect.Width); 503Assert.Equal(90, rect.Width);
mono\System.Drawing.Imaging\GifCodecTests.cs (1)
51Assert.Equal(110, rect.Width);
mono\System.Drawing.Imaging\IconCodecTests.cs (6)
88Assert.Equal(16, rect.Width); 236Assert.Equal(32, rect.Width); 441Assert.Equal(48, rect.Width); 663Assert.Equal(64, rect.Width); 921Assert.Equal(96, rect.Width); 1855Assert.Equal(16, rect.Width);
mono\System.Drawing.Imaging\JpegCodecTests.cs (2)
53Assert.Equal(110, rect.Width); 180Assert.Equal(110, rect.Width);
mono\System.Drawing.Imaging\PngCodecTests.cs (3)
59Assert.Equal(288, rect.Width); 261Assert.Equal(100, rect.Width); 383Assert.Equal(288, rect.Width);
mono\System.Drawing.Imaging\TiffCodecTests.cs (1)
53Assert.Equal(173, rect.Width);
mono\System.Drawing\GraphicsTests.cs (43)
158Assert.Equal(210, rects[0].Width); 186Assert.Equal(100, _rects[0].Width); 191Assert.Equal(30, _rects[1].Width); 196Assert.Equal(100, _rects[2].Width); 213Assert.Equal(30, _rects[0].Width); 231Assert.Equal(8388608, _rects[0].Width); 248Assert.Equal(210, rects[0].Width); 260Assert.Equal(210, rects[0].Width); 272Assert.Equal(210, rects[0].Width); 371AssertEquals(msg + ".compare.Width", b1.Width, b2.Width); 383Assert.Equal(16, bounds.Width); 398Assert.Equal(16, bounds.Width); 413Assert.Equal(16, bounds.Width); 444AssertEquals(msg + ".Width", w, bounds.Width, 1); 1978Assert.True(bounds_show.Width < bounds_none.Width); 1982Assert.True(bounds_show.Width < bounds_none.Width); 1988Assert.Equal((double)bounds_hide.Width, bounds_show.Width); 1992Assert.Equal((double)bounds_hide.Width, bounds_show.Width); 2034Assert.Equal((double)sb.Width, zb.Width); 2046Assert.Equal((double)mb.Width, zb.Width); 2064Assert.Equal(8388608.0f, mb.Width); 2075Assert.Equal(8388608.0f, mb.Width); 2205Assert.Equal(100, noclip.Width); 2213Assert.Equal(32.0, clip.Width, 4); 2220Assert.Equal(32.0, rotclip.Width, 4); 2238Assert.Equal(100, noclip.Width); 2246Assert.Equal(200, clipbound.Width); 2252Assert.Equal(100, clip.Width); 2259Assert.Equal(200.0, rotclipbound.Width, 4); 2265Assert.Equal(100.0, rotclip.Width, 4); 2283Assert.Equal(100.0, vcb.Width, 4); 2290Assert.Equal(50.0, rvcb.Width, 4); 2302Assert.Equal(100, vcb.Width); 2309Assert.Equal(50, svcb.Width); 2321Assert.Equal(100, vcb.Width); 2328Assert.Equal(100, tvcb.Width);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (1)
43Assert.Equal(float.NaN, brush.Rectangle.Width);
System\Drawing\Printing\PrinterSettingsTests.cs (8)
462Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Width, graphic.VisibleClipBounds.Width, 0); 472Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Width, graphic.VisibleClipBounds.Width, 0); 485Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Width, graphic.VisibleClipBounds.Width, 0); 496Assert.Equal((double)printerSettings.DefaultPageSettings.PrintableArea.Width, graphic.VisibleClipBounds.Width, 0);
System\Drawing\RegionTests.cs (5)
430region.Complement(new Rectangle((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height)); 837region.Exclude(new Rectangle((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height)); 1170region.Intersect(new Rectangle((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height)); 1733region.Union(new Rectangle((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height)); 2091region.Xor(new Rectangle((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height));
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\Core\BinaryFormat\BinaryFormatWriter.cs (1)
230value.Width,
System.Windows.Forms.Primitives.TestUtilities (3)
FluentAssertions\FluentAssertExtensions.cs (3)
40parent.Subject.Width.Should().BeApproximately(expectedValue.Width, precision, because, becauseArgs); 62&& ComparisonHelpers.EqualsFloating(expected.Width, actual.Width, precision)