21 instantiations of RectangleF
Microsoft.Private.Windows.Core (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\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.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\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\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 (8)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernButtonDarkModeRenderer.cs (2)
212=> new( 219=> new(
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (2)
299=> new( 306=> new(
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1070focusRectangle = new RectangleF(regionRectangles[0].Location, SizeF.Empty);
System\Windows\Forms\Rendering\Button\PopupButtonKeyCapRenderer.cs (1)
624RectangleF arc = new(rect.X, rect.Y, diameter, diameter);
System\Windows\Forms\Rendering\RadioButton\AnimatedRadioGlyphRenderer.cs (2)
162RectangleF dotRectangle = new( 246return new(
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)
190RectangleF sourceBounds = new(0, 0, bitmap.Size.Width, bitmap.Size.Height); 191RectangleF destinationBounds = new(0, 0, desiredSize.Width, desiredSize.Height);
134 references to RectangleF
Microsoft.Private.Windows.Core (9)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\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 (1)
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
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.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\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\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 (33)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernButtonDarkModeRenderer.cs (8)
95RectangleF pathBounds = GetPathBounds(bounds); 145RectangleF outerBounds = GetPathBounds(bounds); 211private static RectangleF GetPathBounds(Rectangle bounds) 218private static RectangleF Inset(RectangleF bounds, float inset) 225private static GraphicsPath CreateRoundedPath(RectangleF bounds, float radius) 234RectangleF outerBounds, 239RectangleF innerBounds = Inset(outerBounds, thickness);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (8)
48RectangleF pathBounds = GetPathBounds(bounds); 75RectangleF outerBounds = GetPathBounds(contentBounds); 298private static RectangleF GetPathBounds(Rectangle bounds) 305private static RectangleF Inset(RectangleF bounds, float inset) 312private static GraphicsPath CreateRoundedPath(RectangleF bounds, float radius) 321RectangleF outerBounds, 326RectangleF innerBounds = Inset(outerBounds, thickness);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (7)
1037RectangleF focusRectangle = RectangleF.Empty; 1071foreach (RectangleF rect in regionRectangles) 1073focusRectangle = RectangleF.Union(focusRectangle, rect); 1240RectangleF focusRectangle, 1335Debug.Assert(focusRectangle != RectangleF.Empty, "focusRectangle should be initialized"); 1340foreach (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\Button\PopupButtonKeyCapRenderer.cs (2)
273RectangleF borderRect = metrics.KeyRect; 624RectangleF arc = new(rect.X, rect.Y, diameter, diameter);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2009RectangleF layoutRectangle,
System\Windows\Forms\Rendering\RadioButton\AnimatedRadioGlyphRenderer.cs (4)
137RectangleF outerBounds = ScaleFromCenter(bounds, outerScale); 138RectangleF normalBounds = ScaleFromCenter(bounds, normalOuterScale); 162RectangleF dotRectangle = new( 241private static RectangleF ScaleFromCenter(Rectangle bounds, float scale)
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Internals\ScaleHelper.cs (2)
190RectangleF sourceBounds = new(0, 0, bitmap.Size.Width, bitmap.Size.Height); 191RectangleF destinationBounds = new(0, 0, desiredSize.Width, desiredSize.Height);