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