33 instantiations of RectangleF
Microsoft.Private.Windows.Core (2)
_generated\208\Windows.Win32.RECT.g.cs (1)
76
public static implicit operator global::System.Drawing.RectangleF(RECT value) => new global::System.Drawing.
RectangleF
(value.left, value.top, value.Width, value.Height);
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
209
value = new
RectangleF
(
PresentationCore (1)
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
77
value = new
RectangleF
(
System.Drawing.Common (19)
misc\DpiHelper.cs (2)
111
RectangleF sourceRect =
new
(0, 0, logicalImage.Size.Width, logicalImage.Size.Height);
112
RectangleF destRect =
new
(0, 0, deviceImageSize.Width, deviceImageSize.Height);
System\Drawing\Drawing2D\GraphicsPath.cs (1)
778
AddString(s, family, style, emSize, new
RectangleF
(origin.X, origin.Y, 0, 0), format);
System\Drawing\Graphics.cs (14)
1588
DrawString(s, font, brush, new
RectangleF
(x, y, 0, 0), null);
1593
DrawString(s, font, brush, new
RectangleF
(x, y, 0, 0), null);
1608
DrawString(s, font, brush, new
RectangleF
(point.X, point.Y, 0, 0), null);
1613
DrawString(s, font, brush, new
RectangleF
(point.X, point.Y, 0, 0), null);
1633
DrawString(s, font, brush, new
RectangleF
(x, y, 0, 0), format);
1638
DrawString(s, font, brush, new
RectangleF
(x, y, 0, 0), format);
1657
DrawString(s, font, brush, new
RectangleF
(point.X, point.Y, 0, 0), format);
1662
DrawString(s, font, brush, new
RectangleF
(point.X, point.Y, 0, 0), format);
1771
MeasureStringInternal(text, font,
new
(default, layoutArea), stringFormat, out charactersFitted, out linesFilled);
1782
MeasureStringInternal(text, font,
new
(default, layoutArea), stringFormat, out charactersFitted, out linesFilled);
1829
=> MeasureStringInternal(text, font,
new
(origin, default), stringFormat, out _, out _);
1834
=> MeasureStringInternal(text, font,
new
(origin, default), stringFormat, out _, out _);
1853
MeasureStringInternal(text, font,
new
(default, layoutArea), stringFormat, out _, out _);
1858
MeasureStringInternal(text, font,
new
(default, layoutArea), stringFormat, out _, out _);
System\Drawing\Region.cs (2)
299
public bool IsVisible(float x, float y, float width, float height) => IsVisible(new
RectangleF
(x, y, width, height), null);
303
public bool IsVisible(float x, float y, float width, float height, Graphics? g) => IsVisible(new
RectangleF
(x, y, width, height), g);
System.Drawing.Primitives (5)
System\Drawing\RectangleF.cs (5)
76
public static explicit operator RectangleF(Vector4 vector) => new
RectangleF
(vector);
82
new
RectangleF
(left, top, right - left, bottom - top);
280
return new
RectangleF
(x1, y1, x2 - x1, y2 - y1);
302
return new
RectangleF
(x1, y1, x2 - x1, y2 - y1);
323
public static implicit operator RectangleF(Rectangle r) => new
RectangleF
(r.X, r.Y, r.Width, r.Height);
System.Private.Windows.Core (2)
_generated\209\Windows.Win32.RECT.g.cs (1)
76
public static implicit operator global::System.Drawing.RectangleF(RECT value) => new global::System.Drawing.
RectangleF
(value.left, value.top, value.Width, value.Height);
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
209
value = new
RectangleF
(
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1058
focusRectangle = new
RectangleF
(regionRectangles[0].Location, SizeF.Empty);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
417
new
RectangleF
(0.0f, 0.0f, ClientSize.Width, ClientSize.Height),
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Internals\ScaleHelper.cs (2)
184
RectangleF sourceBounds =
new
(0, 0, bitmap.Size.Width, bitmap.Size.Height);
185
RectangleF destinationBounds =
new
(0, 0, desiredSize.Width, desiredSize.Height);
281 references to RectangleF
Microsoft.Private.Windows.Core (9)
_generated\208\Windows.Win32.RECT.g.cs (1)
76
public static implicit operator global::System.Drawing.
RectangleF
(RECT value) => new global::System.Drawing.RectangleF(value.left, value.top, value.Width, value.Height);
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (4)
211
/// Writes a <see cref="
RectangleF
"/> in binary format.
213
public static void WriteRectangleF(Stream stream,
RectangleF
value)
218
new ClassInfo(1, typeof(
RectangleF
).FullName!, s_rectangleMemberNames),
704
case
RectangleF
rectangle:
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (2)
89
{ Types.ToTypeName($"{Types.RectangleFType}"), typeof(
RectangleF
) },
156
|| type == typeof(
RectangleF
)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (2)
189
/// Tries to get this object as a <see cref="
RectangleF
"/>.
200
|| !classInfo.TypeNameMatches(typeof(
RectangleF
))
netstandard (1)
netstandard.cs (1)
753
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
RectangleF
))]
PresentationCore (2)
System\Windows\Nrbf\SerializationRecordExtensions.cs (2)
57
/// Tries to get this object as a <see cref="
RectangleF
"/>.
68
|| !classInfo.TypeNameMatches(typeof(
RectangleF
))
System.Data.Common (1)
System\Data\TypeLimiter.cs (1)
178
typeof(
RectangleF
),
System.Drawing (1)
System.Drawing.cs (1)
140
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
RectangleF
))]
System.Drawing.Common (168)
misc\DpiHelper.cs (2)
111
RectangleF
sourceRect = new(0, 0, logicalImage.Size.Width, logicalImage.Size.Height);
112
RectangleF
destRect = new(0, 0, deviceImageSize.Width, deviceImageSize.Height);
Special\Forwards.cs (1)
11
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
RectangleF
))]
System\Drawing\Bitmap.cs (1)
187
public Bitmap Clone(
RectangleF
rect, PixelFormat format)
System\Drawing\Drawing2D\GraphicsPath.cs (27)
373
public void AddArc(
RectangleF
rect, float startAngle, float sweepAngle) =>
610
public void AddRectangle(
RectangleF
rect)
622
public void AddRectangles(params
RectangleF
[] rects) => AddRectangles(rects.OrThrowIfNull().AsSpan());
624
/// <inheritdoc cref="AddRectangles(
RectangleF
[])"/>
630
void AddRectangles(params ReadOnlySpan<
RectangleF
> rects)
632
fixed (
RectangleF
* r = rects)
639
public void AddRectangle(Rectangle rect) => AddRectangle((
RectangleF
)rect);
641
/// <inheritdoc cref="AddRectangles(
RectangleF
[])"/>
644
/// <inheritdoc cref="AddRectangles(
RectangleF
[])"/>
660
/// <inheritdoc cref="AddRoundedRectangle(
RectangleF
, SizeF)"/>
662
AddRoundedRectangle((
RectangleF
)rect, radius);
669
public void AddRoundedRectangle(
RectangleF
rect, SizeF radius)
700
public void AddEllipse(
RectangleF
rect) =>
783
public void AddString(string s, FontFamily family, int style, float emSize,
RectangleF
layoutRect, StringFormat? format)
806
=> AddString(s, family, style, emSize, (
RectangleF
)layoutRect, format);
816
public
RectangleF
GetBounds() => GetBounds(null);
818
public
RectangleF
GetBounds(Matrix? matrix) => GetBounds(matrix, null);
820
public
RectangleF
GetBounds(Matrix? matrix, Pen? pen)
864
/// <inheritdoc cref="Warp(ReadOnlySpan{PointF},
RectangleF
, Matrix?, WarpMode, float)"/>
865
public void Warp(PointF[] destPoints,
RectangleF
srcRect) => Warp(destPoints, srcRect, null);
867
/// <inheritdoc cref="Warp(ReadOnlySpan{PointF},
RectangleF
, Matrix?, WarpMode, float)"/>
868
public void Warp(PointF[] destPoints,
RectangleF
srcRect, Matrix? matrix) =>
871
/// <inheritdoc cref="Warp(ReadOnlySpan{PointF},
RectangleF
, Matrix?, WarpMode, float)"/>
872
public void Warp(PointF[] destPoints,
RectangleF
srcRect, Matrix? matrix, WarpMode warpMode) =>
875
/// <inheritdoc cref="Warp(ReadOnlySpan{PointF},
RectangleF
, Matrix?, WarpMode, float)"/>
876
public void Warp(PointF[] destPoints,
RectangleF
srcRect, Matrix? matrix, WarpMode warpMode, float flatness) =>
904
RectangleF
srcRect,
System\Drawing\Drawing2D\LinearGradientBrush.cs (7)
29
public LinearGradientBrush(
RectangleF
rect, Color color1, Color color2, LinearGradientMode linearGradientMode)
50
: this((
RectangleF
)rect, color1, color2, linearGradientMode)
54
public LinearGradientBrush(
RectangleF
rect, Color color1, Color color2, float angle)
59
public LinearGradientBrush(
RectangleF
rect, Color color1, Color color2, float angle, bool isAngleScaleable)
83
: this((
RectangleF
)rect, color1, color2, angle, isAngleScaleable)
124
public
RectangleF
Rectangle
128
RectangleF
rect;
System\Drawing\Drawing2D\Matrix.cs (1)
51
public Matrix(
RectangleF
rect, params PointF[] plgpts)
System\Drawing\Drawing2D\PathGradientBrush.cs (2)
187
public
RectangleF
Rectangle
191
RectangleF
rect;
System\Drawing\Graphics.cs (81)
210
public
RectangleF
ClipBounds
528
public void SetClip(Rectangle rect, Drawing2D.CombineMode combineMode) => SetClip((
RectangleF
)rect, combineMode);
530
public void SetClip(
RectangleF
rect) => SetClip(rect, Drawing2D.CombineMode.Replace);
532
public void SetClip(
RectangleF
rect, Drawing2D.CombineMode combineMode) =>
551
public void IntersectClip(Rectangle rect) => IntersectClip((
RectangleF
)rect);
553
public void IntersectClip(
RectangleF
rect) =>
609
public bool IsVisible(
RectangleF
rect) => IsVisible(rect.X, rect.Y, rect.Width, rect.Height);
666
public void DrawArc(Pen pen,
RectangleF
rect, float startAngle, float sweepAngle) =>
713
public void DrawRectangle(Pen pen,
RectangleF
rect) => DrawRectangle(pen, rect.X, rect.Y, rect.Width, rect.Height);
721
/// <inheritdoc cref="DrawRoundedRectangle(Pen,
RectangleF
, SizeF)"/>
723
DrawRoundedRectangle(pen, (
RectangleF
)rect, radius);
731
public void DrawRoundedRectangle(Pen pen,
RectangleF
rect, SizeF radius)
756
public void DrawRectangles(Pen pen, params
RectangleF
[] rects) => DrawRectangles(pen, rects.OrThrowIfNull().AsSpan());
764
void DrawRectangles(Pen pen, params ReadOnlySpan<
RectangleF
> rects)
768
fixed (
RectangleF
* r = rects)
804
public void DrawEllipse(Pen pen,
RectangleF
rect) => DrawEllipse(pen, rect.X, rect.Y, rect.Width, rect.Height);
829
public void DrawPie(Pen pen,
RectangleF
rect, float startAngle, float sweepAngle) =>
1195
/// <inheritdoc cref="FillRoundedRectangle(Brush,
RectangleF
, SizeF)"/>
1197
FillRoundedRectangle(brush, (
RectangleF
)rect, radius);
1205
public void FillRoundedRectangle(Brush brush,
RectangleF
rect, SizeF radius)
1216
public void FillRectangle(Brush brush,
RectangleF
rect) => FillRectangle(brush, rect.X, rect.Y, rect.Width, rect.Height);
1248
public void FillRectangles(Brush brush, params
RectangleF
[] rects)
1254
/// <inheritdoc cref="FillRectangles(Brush,
RectangleF
[])"/>
1260
void FillRectangles(Brush brush, params ReadOnlySpan<
RectangleF
> rects)
1264
fixed (
RectangleF
* r = rects)
1272
/// <inheritdoc cref="FillRectangles(Brush,
RectangleF
[])"/>
1276
/// <inheritdoc cref="FillRectangles(Brush,
RectangleF
[])"/>
1370
public void FillEllipse(Brush brush,
RectangleF
rect) => FillEllipse(brush, rect.X, rect.Y, rect.Width, rect.Height);
1418
public void FillPie(Brush brush,
RectangleF
rect, float startAngle, float sweepAngle) =>
1672
/// <param name="layoutRectangle"><see cref="
RectangleF
"/>structure that specifies the location of the drawn text.</param>
1681
/// <see cref="DrawString(string?, Font, Brush,
RectangleF
, StringFormat?)"/> overload that takes
1685
public void DrawString(string? s, Font font, Brush brush,
RectangleF
layoutRectangle) =>
1694
/// <see cref="DrawString(ReadOnlySpan{char}, Font, Brush,
RectangleF
, StringFormat?)"/> overload that takes
1698
/// <inheritdoc cref="DrawString(string?, Font, Brush,
RectangleF
)"/>
1699
public void DrawString(ReadOnlySpan<char> s, Font font, Brush brush,
RectangleF
layoutRectangle) =>
1710
/// <param name="layoutRectangle"><see cref="
RectangleF
"/>structure that specifies the location of the drawn text.</param>
1725
public void DrawString(string? s, Font font, Brush brush,
RectangleF
layoutRectangle, StringFormat? format) =>
1729
/// <inheritdoc cref="DrawString(string?, Font, Brush,
RectangleF
, StringFormat?)"/>
1730
public void DrawString(ReadOnlySpan<char> s, Font font, Brush brush,
RectangleF
layoutRectangle, StringFormat? format) =>
1734
private void DrawStringInternal(ReadOnlySpan<char> s, Font font, Brush brush,
RectangleF
layoutRectangle, StringFormat? format)
1788
RectangleF
layoutArea,
1878
/// use the <see cref="MeasureCharacterRanges(string?, Font,
RectangleF
, StringFormat?)"/> method or one of
1921
/// <param name="layoutRect"><see cref="
RectangleF
"/> structure that specifies the layout rectangle for the text.</param>
1936
public Region[] MeasureCharacterRanges(string? text, Font font,
RectangleF
layoutRect, StringFormat? stringFormat) =>
1940
/// <inheritdoc cref="MeasureCharacterRanges(string?, Font,
RectangleF
, StringFormat?)"/>
1941
public Region[] MeasureCharacterRanges(ReadOnlySpan<char> text, Font font,
RectangleF
layoutRect, StringFormat? stringFormat) =>
2006
public void DrawImage(Image image,
RectangleF
rect) => DrawImage(image, rect.X, rect.Y, rect.Width, rect.Height);
2089
public void DrawImage(Image image, float x, float y,
RectangleF
srcRect, GraphicsUnit srcUnit)
2105
=> DrawImage(image, x, y, (
RectangleF
)srcRect, srcUnit);
2107
public void DrawImage(Image image,
RectangleF
destRect,
RectangleF
srcRect, GraphicsUnit srcUnit)
2128
public void DrawImage(Image image, PointF[] destPoints,
RectangleF
srcRect, GraphicsUnit srcUnit)
2154
public void DrawImage(Image image, PointF[] destPoints,
RectangleF
srcRect, GraphicsUnit srcUnit, ImageAttributes? imageAttr) =>
2160
RectangleF
srcRect,
2169
RectangleF
srcRect,
2461
public void EnumerateMetafile(Metafile metafile,
RectangleF
destRect, EnumerateMetafileProc callback) =>
2464
public void EnumerateMetafile(Metafile metafile,
RectangleF
destRect, EnumerateMetafileProc callback, IntPtr callbackData) =>
2491
RectangleF
srcRect,
2498
RectangleF
srcRect,
2520
RectangleF
destRect,
2521
RectangleF
srcRect,
2527
RectangleF
destRect,
2528
RectangleF
srcRect,
2551
RectangleF
srcRect,
2558
RectangleF
srcRect,
2970
RectangleF
destRect,
2994
ImageAttributes? imageAttr) => EnumerateMetafile(metafile, (
RectangleF
)destRect, callback, callbackData, imageAttr);
3057
RectangleF
srcRect,
3089
(
RectangleF
)srcRect,
3097
RectangleF
destRect,
3098
RectangleF
srcRect,
3127
ImageAttributes? imageAttr) => EnumerateMetafile(metafile, (
RectangleF
)destRect, srcRect, unit, callback, callbackData, imageAttr);
3132
RectangleF
srcRect,
3382
public
RectangleF
VisibleClipBounds
3464
public GraphicsContainer BeginContainer(
RectangleF
dstrect,
RectangleF
srcrect, GraphicsUnit unit)
3511
=> BeginContainer((
RectangleF
)dstrect, (
RectangleF
)srcrect, unit);
3613
/// <inheritdoc cref="DrawImage(Image, Effect,
RectangleF
, Matrix?, GraphicsUnit, ImageAttributes?)"/>
3623
/// <param name="srcRect">The portion of the image to be drawn. <see cref="
RectangleF
.Empty"/> draws the full image.</param>
3630
RectangleF
srcRect = default,
System\Drawing\Image.cs (2)
582
public
RectangleF
GetBounds(ref GraphicsUnit pageUnit)
585
RectangleF
bounds = this.GetImageBounds();
System\Drawing\Imaging\Metafile.cs (16)
92
public Metafile(IntPtr referenceHdc,
RectangleF
frameRect) :
101
public Metafile(IntPtr referenceHdc,
RectangleF
frameRect, MetafileFrameUnit frameUnit) :
110
public Metafile(IntPtr referenceHdc,
RectangleF
frameRect, MetafileFrameUnit frameUnit, EmfType type) :
119
public Metafile(IntPtr referenceHdc,
RectangleF
frameRect, MetafileFrameUnit frameUnit, EmfType type, string? description)
175
public Metafile(string fileName, IntPtr referenceHdc,
RectangleF
frameRect) :
183
public Metafile(string fileName, IntPtr referenceHdc,
RectangleF
frameRect, MetafileFrameUnit frameUnit) :
191
public Metafile(string fileName, IntPtr referenceHdc,
RectangleF
frameRect, MetafileFrameUnit frameUnit, EmfType type) :
199
public Metafile(string fileName, IntPtr referenceHdc,
RectangleF
frameRect, MetafileFrameUnit frameUnit, string? desc) :
207
public Metafile(string fileName, IntPtr referenceHdc,
RectangleF
frameRect, MetafileFrameUnit frameUnit, EmfType type, string? description)
285
public Metafile(Stream stream, IntPtr referenceHdc,
RectangleF
frameRect) :
293
public Metafile(Stream stream, IntPtr referenceHdc,
RectangleF
frameRect, MetafileFrameUnit frameUnit) :
301
public Metafile(Stream stream, IntPtr referenceHdc,
RectangleF
frameRect, MetafileFrameUnit frameUnit, EmfType type) :
380
RectF rect = (
RectangleF
)frameRect;
429
RectF rect = (
RectangleF
)frameRect;
474
public unsafe Metafile(Stream stream, IntPtr referenceHdc,
RectangleF
frameRect, MetafileFrameUnit frameUnit, EmfType type, string? description)
507
RectF rect = (
RectangleF
)frameRect;
System\Drawing\Printing\PageSettings.cs (2)
148
public
RectangleF
PrintableArea
152
RectangleF
printableArea = default;
System\Drawing\Printing\PrintPreviewGraphics.cs (1)
25
public
RectangleF
VisibleClipBounds
System\Drawing\Region.cs (20)
21
public Region(
RectangleF
rect)
29
public Region(Rectangle rect) : this((
RectangleF
)rect)
109
public void Intersect(
RectangleF
rect) =>
112
public void Intersect(Rectangle rect) => Intersect((
RectangleF
)rect);
128
public void Union(
RectangleF
rect) =>
131
public void Union(Rectangle rect) => Union((
RectangleF
)rect);
147
public void Xor(
RectangleF
rect) =>
150
public void Xor(Rectangle rect) => Xor((
RectangleF
)rect);
166
public void Exclude(
RectangleF
rect) =>
169
public void Exclude(Rectangle rect) => Exclude((
RectangleF
)rect);
185
public void Complement(
RectangleF
rect) =>
188
public void Complement(Rectangle rect) => Complement((
RectangleF
)rect);
216
public
RectangleF
GetBounds(Graphics g)
301
public bool IsVisible(
RectangleF
rect) => IsVisible(rect, null);
305
public bool IsVisible(
RectangleF
rect, Graphics? g)
330
public bool IsVisible(Rectangle rect, Graphics? g) => IsVisible((
RectangleF
)rect, g);
332
public
RectangleF
[] GetRegionScans(Matrix matrix)
347
RectangleF
[] rectangles = new
RectangleF
[count];
349
fixed (
RectangleF
* r = rectangles)
System\Drawing\TextureBrush.cs (5)
36
public TextureBrush(Image image, Drawing2D.WrapMode wrapMode,
RectangleF
dstRect)
56
: this(image, wrapMode, (
RectangleF
)dstRect)
60
public TextureBrush(Image image,
RectangleF
dstRect) : this(image, dstRect, null) { }
62
public TextureBrush(Image image,
RectangleF
dstRect, ImageAttributes? imageAttr)
84
: this(image, (
RectangleF
)dstRect, imageAttr)
System.Drawing.Primitives (59)
System\Drawing\Rectangle.cs (3)
177
public static Rectangle Ceiling(
RectangleF
value)
192
public static Rectangle Truncate(
RectangleF
value)
207
public static Rectangle Round(
RectangleF
value)
System\Drawing\RectangleF.cs (56)
15
public struct RectangleF : IEquatable<
RectangleF
>
18
/// Initializes a new instance of the <see cref='System.Drawing.
RectangleF
'/> class.
20
public static readonly
RectangleF
Empty;
28
/// Initializes a new instance of the <see cref='System.Drawing.
RectangleF
'/> class with the specified location
40
/// Initializes a new instance of the <see cref='System.Drawing.
RectangleF
'/> class with the specified location
52
/// Initializes a new instance of the <see cref='System.Drawing.
RectangleF
'/> struct from the specified
64
/// Creates a new <see cref="System.Numerics.Vector4"/> from this <see cref="System.Drawing.
RectangleF
"/>.
69
/// Converts the specified <see cref="System.Drawing.
RectangleF
"/> to a <see cref="System.Numerics.Vector4"/>.
71
public static explicit operator Vector4(
RectangleF
rectangle) => rectangle.ToVector4();
74
/// Converts the specified <see cref="System.Numerics.Vector2"/> to a <see cref="System.Drawing.
RectangleF
"/>.
76
public static explicit operator
RectangleF
(Vector4 vector) => new RectangleF(vector);
79
/// Creates a new <see cref='System.Drawing.
RectangleF
'/> with the specified location and size.
81
public static
RectangleF
FromLTRB(float left, float top, float right, float bottom) =>
86
/// <see cref='System.Drawing.
RectangleF
'/>.
100
/// Gets or sets the size of this <see cref='System.Drawing.
RectangleF
'/>.
115
/// <see cref='System.Drawing.
RectangleF
'/>.
125
/// <see cref='System.Drawing.
RectangleF
'/>.
134
/// Gets or sets the width of the rectangular region defined by this <see cref='System.Drawing.
RectangleF
'/>.
143
/// Gets or sets the height of the rectangular region defined by this <see cref='System.Drawing.
RectangleF
'/>.
153
/// <see cref='System.Drawing.
RectangleF
'/> .
160
/// <see cref='System.Drawing.
RectangleF
'/>.
167
/// <see cref='System.Drawing.
RectangleF
'/>.
174
/// <see cref='System.Drawing.
RectangleF
'/>.
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.
186
/// Tests whether <paramref name="obj"/> is a <see cref='System.Drawing.
RectangleF
'/> with the same location and
187
/// size of this <see cref='System.Drawing.
RectangleF
'/>.
189
public override readonly bool Equals([NotNullWhen(true)] object? obj) => obj is
RectangleF
&& Equals((
RectangleF
)obj);
191
public readonly bool Equals(
RectangleF
other) => this == other;
194
/// Tests whether two <see cref='System.Drawing.
RectangleF
'/> objects have equal location and size.
196
public static bool operator ==(
RectangleF
left,
RectangleF
right) =>
200
/// Tests whether two <see cref='System.Drawing.
RectangleF
'/> objects differ in location or size.
202
public static bool operator !=(
RectangleF
left,
RectangleF
right) => !(left == right);
220
public readonly bool Contains(
RectangleF
rect) =>
224
/// Gets the hash code for this <see cref='System.Drawing.
RectangleF
'/>.
247
public static
RectangleF
Inflate(
RectangleF
rect, float x, float y)
249
RectangleF
r = rect;
257
public void Intersect(
RectangleF
rect)
259
RectangleF
result = Intersect(rect, this);
271
public static
RectangleF
Intersect(
RectangleF
a,
RectangleF
b)
289
public readonly bool IntersectsWith(
RectangleF
rect) =>
295
public static
RectangleF
Union(
RectangleF
a,
RectangleF
b)
321
/// <see cref='System.Drawing.
RectangleF
'/>.
323
public static implicit operator
RectangleF
(Rectangle r) => new RectangleF(r.X, r.Y, r.Width, r.Height);
326
/// Converts the <see cref='System.Drawing.
RectangleF
.Location'/> and <see cref='System.Drawing.
RectangleF
.Size'/>
327
/// of this <see cref='System.Drawing.
RectangleF
'/> to a human-readable string.
System.Private.Windows.Core (9)
_generated\209\Windows.Win32.RECT.g.cs (1)
76
public static implicit operator global::System.Drawing.
RectangleF
(RECT value) => new global::System.Drawing.RectangleF(value.left, value.top, value.Width, value.Height);
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (4)
211
/// Writes a <see cref="
RectangleF
"/> in binary format.
213
public static void WriteRectangleF(Stream stream,
RectangleF
value)
218
new ClassInfo(1, typeof(
RectangleF
).FullName!, s_rectangleMemberNames),
704
case
RectangleF
rectangle:
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (2)
89
{ Types.ToTypeName($"{Types.RectangleFType}"), typeof(
RectangleF
) },
156
|| type == typeof(
RectangleF
)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (2)
189
/// Tries to get this object as a <see cref="
RectangleF
"/>.
200
|| !classInfo.TypeNameMatches(typeof(
RectangleF
))
System.Private.Windows.Core.TestUtilities (12)
FluentAssertions\FluentAssertExtensions.cs (10)
18
/// current <see cref="
RectangleF
"/>.
20
public static RectangleFAssertions Should(this
RectangleF
actualValue) => new(actualValue);
29
/// Asserts a <see cref="
RectangleF
"/> value approximates another value as close as possible.
35
RectangleF
expectedValue,
50
/// Asserts that two <see cref="
RectangleF
"/> collections contain the same items in the same order
54
public static AndConstraint<GenericCollectionAssertions<
RectangleF
>> BeApproximatelyEquivalentTo(
55
this GenericCollectionAssertions<
RectangleF
> parent,
56
IEnumerable<
RectangleF
> expectation,
62
(
RectangleF
actual,
RectangleF
expected) =>
FluentAssertions\RectangleFAssertions.cs (2)
8
public class RectangleFAssertions(
RectangleF
value)
10
public
RectangleF
Subject { get; } = value;
System.Private.Windows.GdiPlus (6)
Windows\Win32\Graphics\GdiPlus\GpImageExtensions.cs (2)
13
internal static
RectangleF
GetImageBounds(this IPointer<GpImage> image)
15
RectangleF
bounds;
Windows\Win32\Graphics\GdiPlus\RectF.cs (4)
11
public static implicit operator
RectangleF
(RectF rect) => Unsafe.As<RectF,
RectangleF
>(ref rect);
12
public static implicit operator RectF(
RectangleF
rectangle) => Unsafe.As<
RectangleF
, RectF>(ref rectangle);
System.Windows.Forms (11)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (7)
1025
RectangleF
focusRectangle =
RectangleF
.Empty;
1059
foreach (
RectangleF
rect in regionRectangles)
1061
focusRectangle =
RectangleF
.Union(focusRectangle, rect);
1228
RectangleF
focusRectangle,
1323
Debug.Assert(focusRectangle !=
RectangleF
.Empty, "focusRectangle should be initialized");
1328
foreach (
RectangleF
rect in regionRectangles)
System\Windows\Forms\Layout\TableLayout.cs (3)
113
RectangleF
displayRect = (
RectangleF
)container.DisplayRectangle;
1173
private static void SetElementBounds(ContainerInfo containerInfo,
RectangleF
displayRectF)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2009
RectangleF
layoutRectangle,
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Internals\ScaleHelper.cs (2)
184
RectangleF
sourceBounds = new(0, 0, bitmap.Size.Width, bitmap.Size.Height);
185
RectangleF
destinationBounds = new(0, 0, desiredSize.Width, desiredSize.Height);