6 writes to Width
System.Drawing.Common (2)
System\Drawing\Printing\PageSettings.cs (2)
162
printableArea.
Width
= (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.HORZRES) * 100 / dpiX;
171
printableArea.
Width
= (float)PInvokeCore.GetDeviceCaps(hdc, GET_DEVICE_CAPS_INDEX.VERTRES) * 100 / dpiY;
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)
1071
focusRectangle.
Width
= requiredSize.Width;
54 references to Width
Microsoft.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
229
value.
Width
,
System.Drawing.Common (27)
System\Drawing\Bitmap.cs (2)
189
if (rect.
Width
== 0 || rect.Height == 0)
197
rect.X, rect.Y, rect.
Width
, rect.Height,
System\Drawing\Drawing2D\GraphicsPath.cs (4)
374
AddArc(rect.X, rect.Y, rect.
Width
, rect.Height, startAngle, sweepAngle);
614
rect.X, rect.Y, rect.
Width
, rect.Height).ThrowIfFailed();
701
AddEllipse(rect.X, rect.Y, rect.
Width
, rect.Height);
916
srcRect.X, srcRect.Y, srcRect.
Width
, srcRect.Height,
System\Drawing\Drawing2D\LinearGradientBrush.cs (2)
34
if (rect.
Width
== 0.0 || rect.Height == 0.0)
61
if (rect.
Width
== 0.0 || rect.Height == 0.0)
System\Drawing\Graphics.cs (16)
533
CheckStatus(PInvokeGdiPlus.GdipSetClipRect(NativeGraphics, rect.X, rect.Y, rect.
Width
, rect.Height, (GdiPlus.CombineMode)combineMode));
556
rect.X, rect.Y, rect.
Width
, rect.Height,
609
public bool IsVisible(RectangleF rect) => IsVisible(rect.X, rect.Y, rect.
Width
, rect.Height);
667
DrawArc(pen, rect.X, rect.Y, rect.
Width
, rect.Height, startAngle, sweepAngle);
713
public void DrawRectangle(Pen pen, RectangleF rect) => DrawRectangle(pen, rect.X, rect.Y, rect.
Width
, rect.Height);
804
public void DrawEllipse(Pen pen, RectangleF rect) => DrawEllipse(pen, rect.X, rect.Y, rect.
Width
, rect.Height);
830
DrawPie(pen, rect.X, rect.Y, rect.
Width
, rect.Height, startAngle, sweepAngle);
1216
public void FillRectangle(Brush brush, RectangleF rect) => FillRectangle(brush, rect.X, rect.Y, rect.
Width
, rect.Height);
1370
public void FillEllipse(Brush brush, RectangleF rect) => FillEllipse(brush, rect.X, rect.Y, rect.
Width
, rect.Height);
1419
FillPie(brush, rect.X, rect.Y, rect.
Width
, rect.Height, startAngle, sweepAngle);
2006
public void DrawImage(Image image, RectangleF rect) => DrawImage(image, rect.X, rect.Y, rect.
Width
, rect.Height);
2097
srcRect.X, srcRect.Y, srcRect.
Width
, srcRect.Height,
2114
destRect.X, destRect.Y, destRect.
Width
, destRect.Height,
2115
srcRect.X, srcRect.Y, srcRect.
Width
, srcRect.Height,
2143
srcRect.X, srcRect.Y, srcRect.
Width
, srcRect.Height,
2188
srcRect.X, srcRect.Y, srcRect.
Width
, srcRect.Height,
System\Drawing\Region.cs (1)
310
rect.X, rect.Y, rect.
Width
, rect.Height,
System\Drawing\TextureBrush.cs (2)
49
dstRect.X, dstRect.Y, dstRect.
Width
, dstRect.Height, &brush).ThrowIfFailed();
72
dstRect.
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)