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