21 instantiations of RectangleF
Microsoft.Private.Windows.Core (2)
PresentationCore (1)
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)
System.Windows.Forms (8)
System.Windows.Forms.Design (1)
System.Windows.Forms.Primitives (2)
134 references to RectangleF
Microsoft.Private.Windows.Core (9)
netstandard (1)
PresentationCore (1)
System.Data.Common (1)
System.Drawing (1)
System.Drawing.Primitives (59)
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)
System.Private.Windows.Core.TestUtilities (12)
System.Private.Windows.GdiPlus (6)
System.Windows.Forms (33)
System.Windows.Forms.Primitives (2)