18 instantiations of PointF
Microsoft.Private.Windows.Core (1)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
157value = new PointF(classInfo.GetSingle("x"), classInfo.GetSingle("y"));
PresentationCore (1)
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
50value = new PointF(classInfo.GetSingle("x"), classInfo.GetSingle("y"));
System.Drawing.Primitives (8)
System\Drawing\Point.cs (1)
79public static implicit operator PointF(Point p) => new PointF(p.X, p.Y);
System\Drawing\PointF.cs (5)
81public static explicit operator PointF(Vector2 vector) => new PointF(vector); 120public static PointF Add(PointF pt, Size sz) => new PointF(pt.X + sz.Width, pt.Y + sz.Height); 125public static PointF Subtract(PointF pt, Size sz) => new PointF(pt.X - sz.Width, pt.Y - sz.Height); 130public static PointF Add(PointF pt, SizeF sz) => new PointF(pt.X + sz.Width, pt.Y + sz.Height); 135public static PointF Subtract(PointF pt, SizeF sz) => new PointF(pt.X - sz.Width, pt.Y - sz.Height);
System\Drawing\RectangleF.cs (1)
91readonly get => new PointF(X, Y);
System\Drawing\SizeF.cs (1)
127public static explicit operator PointF(SizeF size) => new PointF(size.Width, size.Height);
System.Private.Windows.Core (1)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
157value = new PointF(classInfo.GetSingle("x"), classInfo.GetSingle("y"));
System.Windows.Forms (7)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1087PointF pcont = new(sz.Width, sz.Height);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1126PointF pcont = new(sz.Width, sz.Height);
System\Windows\Forms\Rendering\Button\PopupButtonKeyCapRenderer.cs (2)
210bowlBrush.CenterPoint = new PointF( 213bowlBrush.FocusScales = new PointF(0.28f, 0.22f);
System\Windows\Forms\Rendering\CheckBox\AnimatedCheckGlyphRenderer.cs (3)
270PointF first = new(bounds.Left + (bounds.Width * 0.20f), bounds.Top + (bounds.Height * 0.52f)); 271PointF second = new(bounds.Left + (bounds.Width * 0.42f), bounds.Top + (bounds.Height * 0.74f)); 272PointF third = new(bounds.Left + (bounds.Width * 0.82f), bounds.Top + (bounds.Height * 0.28f));
121 references to PointF
Microsoft.Private.Windows.Core (8)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (4)
192/// Writes a <see cref="PointF"/> in binary format. 194public static void WritePointF(Stream stream, PointF value) 199new ClassInfo(1, typeof(PointF).FullName!, s_pointMemberNames), 701case PointF point:
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (2)
90{ Types.ToTypeName($"{Types.PointFType}"), typeof(PointF) }, 157|| type == typeof(PointF)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (2)
139/// Tries to get this object as a <see cref="PointF"/>. 150|| !classInfo.TypeNameMatches(typeof(PointF))
netstandard (1)
netstandard.cs (1)
750[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.PointF))]
PresentationCore (1)
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
43|| !classInfo.TypeNameMatches(typeof(PointF))
System.Data.Common (1)
System\Data\TypeLimiter.cs (1)
176typeof(PointF),
System.Drawing (1)
System.Drawing.cs (1)
107[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.PointF))]
System.Drawing.Primitives (67)
System\Drawing\Point.cs (5)
77/// Creates a <see cref='System.Drawing.PointF'/> with the coordinates of the specified <see cref='System.Drawing.Point'/> 79public static implicit operator PointF(Point p) => new PointF(p.X, p.Y); 123public static Point Ceiling(PointF value) => new Point(unchecked((int)Math.Ceiling(value.X)), unchecked((int)Math.Ceiling(value.Y))); 128public static Point Truncate(PointF value) => new Point(unchecked((int)value.X), unchecked((int)value.Y)); 133public static Point Round(PointF value) => new Point(unchecked((int)Math.Round(value.X)), unchecked((int)Math.Round(value.Y)));
System\Drawing\PointF.cs (52)
16public struct PointF : IEquatable<PointF> 19/// Creates a new instance of the <see cref='System.Drawing.PointF'/> class with member data left uninitialized. 21public static readonly PointF Empty; 26/// Initializes a new instance of the <see cref='System.Drawing.PointF'/> class with the specified coordinates. 35/// Initializes a new instance of the <see cref='System.Drawing.PointF'/> struct from the specified 45/// Creates a new <see cref="System.Numerics.Vector2"/> from this <see cref="System.Drawing.PointF"/>. 50/// Gets a value indicating whether this <see cref='System.Drawing.PointF'/> is empty. 56/// Gets the x-coordinate of this <see cref='System.Drawing.PointF'/>. 65/// Gets the y-coordinate of this <see cref='System.Drawing.PointF'/>. 74/// Converts the specified <see cref="System.Drawing.PointF"/> to a <see cref="System.Numerics.Vector2"/>. 76public static explicit operator Vector2(PointF point) => point.ToVector2(); 79/// Converts the specified <see cref="System.Numerics.Vector2"/> to a <see cref="System.Drawing.PointF"/>. 81public static explicit operator PointF(Vector2 vector) => new PointF(vector); 84/// Translates a <see cref='System.Drawing.PointF'/> by a given <see cref='System.Drawing.Size'/> . 86public static PointF operator +(PointF pt, Size sz) => Add(pt, sz); 89/// Translates a <see cref='System.Drawing.PointF'/> by the negative of a given <see cref='System.Drawing.Size'/> . 91public static PointF operator -(PointF pt, Size sz) => Subtract(pt, sz); 94/// Translates a <see cref='System.Drawing.PointF'/> by a given <see cref='System.Drawing.SizeF'/> . 96public static PointF operator +(PointF pt, SizeF sz) => Add(pt, sz); 99/// Translates a <see cref='System.Drawing.PointF'/> by the negative of a given <see cref='System.Drawing.SizeF'/> . 101public static PointF operator -(PointF pt, SizeF sz) => Subtract(pt, sz); 104/// Compares two <see cref='System.Drawing.PointF'/> objects. The result specifies whether the values of the 105/// <see cref='System.Drawing.PointF.X'/> and <see cref='System.Drawing.PointF.Y'/> properties of the two 106/// <see cref='System.Drawing.PointF'/> objects are equal. 108public static bool operator ==(PointF left, PointF right) => left.X == right.X && left.Y == right.Y; 111/// Compares two <see cref='System.Drawing.PointF'/> objects. The result specifies whether the values of the 112/// <see cref='System.Drawing.PointF.X'/> or <see cref='System.Drawing.PointF.Y'/> properties of the two 113/// <see cref='System.Drawing.PointF'/> objects are unequal. 115public static bool operator !=(PointF left, PointF right) => !(left == right); 118/// Translates a <see cref='System.Drawing.PointF'/> by a given <see cref='System.Drawing.Size'/> . 120public static PointF Add(PointF pt, Size sz) => new PointF(pt.X + sz.Width, pt.Y + sz.Height); 123/// Translates a <see cref='System.Drawing.PointF'/> by the negative of a given <see cref='System.Drawing.Size'/> . 125public static PointF Subtract(PointF pt, Size sz) => new PointF(pt.X - sz.Width, pt.Y - sz.Height); 128/// Translates a <see cref='System.Drawing.PointF'/> by a given <see cref='System.Drawing.SizeF'/> . 130public static PointF Add(PointF pt, SizeF sz) => new PointF(pt.X + sz.Width, pt.Y + sz.Height); 133/// Translates a <see cref='System.Drawing.PointF'/> by the negative of a given <see cref='System.Drawing.SizeF'/> . 135public static PointF Subtract(PointF pt, SizeF sz) => new PointF(pt.X - sz.Width, pt.Y - sz.Height); 137public override readonly bool Equals([NotNullWhen(true)] object? obj) => obj is PointF && Equals((PointF)obj); 139public readonly bool Equals(PointF other) => this == other;
System\Drawing\RectangleF.cs (4)
43public RectangleF(PointF location, SizeF size) 89public PointF Location 214public readonly bool Contains(PointF pt) => Contains(pt.X, pt.Y); 308public void Offset(PointF pos) => Offset(pos.X, pos.Y);
System\Drawing\SizeF.cs (6)
37/// <see cref='System.Drawing.PointF'/>. 39public SizeF(PointF pt) 125/// Converts the specified <see cref='System.Drawing.SizeF'/> to a <see cref='System.Drawing.PointF'/>. 127public static explicit operator PointF(SizeF size) => new PointF(size.Width, size.Height); 173public readonly PointF ToPointF() => (PointF)this;
System.Private.Windows.Core (8)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (4)
192/// Writes a <see cref="PointF"/> in binary format. 194public static void WritePointF(Stream stream, PointF value) 199new ClassInfo(1, typeof(PointF).FullName!, s_pointMemberNames), 701case PointF point:
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (2)
90{ Types.ToTypeName($"{Types.PointFType}"), typeof(PointF) }, 157|| type == typeof(PointF)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (2)
139/// Tries to get this object as a <see cref="PointF"/>. 150|| !classInfo.TypeNameMatches(typeof(PointF))
System.Private.Windows.Core.TestUtilities (12)
FluentAssertions\FluentAssertExtensions.cs (10)
24/// current <see cref="PointF"/>. 26public static PointFAssertions Should(this PointF actualValue) => new(actualValue); 72/// Asserts a <see cref="PointF"/> value approximates another value as close as possible. 78PointF expectedValue, 91/// Asserts that two <see cref="PointF"/> collections contain the same items in the same order 95public static AndConstraint<GenericCollectionAssertions<PointF>> BeApproximatelyEquivalentTo( 96this GenericCollectionAssertions<PointF> parent, 97IEnumerable<PointF> expectation, 103(PointF actual, PointF expected) =>
FluentAssertions\PointFAssertions.cs (2)
8public class PointFAssertions(PointF value) 10public PointF Subject { get; } = value;
System.Windows.Forms (11)
GlobalUsings.cs (1)
31global using PointF = System.Drawing.PointF;
System\Windows\Forms\ActiveX\AxHost.cs (2)
1074PointF pcont = default; 1087PointF pcont = new(sz.Width, sz.Height);
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
163HRESULT IOleControlSite.Interface.TransformCoords(POINTL* pPtlHimetric, PointF* pPtfContainer, uint dwFlags)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
1114PointF pcont = default; 1126PointF pcont = new(sz.Width, sz.Height);
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
82HRESULT IOleControlSite.Interface.TransformCoords(POINTL* pPtlHimetric, PointF* pPtfContainer, uint dwFlags)
System\Windows\Forms\Rendering\CheckBox\AnimatedCheckGlyphRenderer.cs (3)
270PointF first = new(bounds.Left + (bounds.Width * 0.20f), bounds.Top + (bounds.Height * 0.52f)); 271PointF second = new(bounds.Left + (bounds.Width * 0.42f), bounds.Top + (bounds.Height * 0.74f)); 272PointF third = new(bounds.Left + (bounds.Width * 0.82f), bounds.Top + (bounds.Height * 0.28f));
System\Windows\Forms\Rendering\DrawingEventArgs.cs (1)
156graphics.GetContextInfo(out PointF offset, out Region? clip);
System.Windows.Forms.Primitives (11)
Generated\361d1da7f942c932\Windows.Win32.System_Ole_IOleControlSite_Extensions.g.cs (3)
23 /// <inheritdoc cref="winmdroot.System.Ole.IOleControlSite.Interface.TransformCoords(winmdroot.Foundation.POINTL*, global::System.Drawing.PointF*, uint)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT TransformCoords(this winmdroot.System.Ole.IOleControlSite.Interface @this, ref winmdroot.Foundation.POINTL pPtlHimetric, ref global::System.Drawing.PointF pPtfContainer, uint dwFlags) 26 fixed (global::System.Drawing.PointF* pPtfContainerLocal = &pPtfContainer)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleControlSite.g.cs (8)
155 /// <inheritdoc cref="TransformCoords(winmdroot.Foundation.POINTL*, global::System.Drawing.PointF*, uint)"/> 157 internal unsafe winmdroot.Foundation.HRESULT TransformCoords(ref winmdroot.Foundation.POINTL pPtlHimetric, ref global::System.Drawing.PointF pPtfContainer, uint dwFlags) 159 fixed (global::System.Drawing.PointF* pPtfContainerLocal = &pPtfContainer) 172 private static winmdroot.Foundation.HRESULT TransformCoords(IOleControlSite* pThis, winmdroot.Foundation.POINTL* pPtlHimetric, global::System.Drawing.PointF* pPtfContainer, uint dwFlags) 198 public unsafe winmdroot.Foundation.HRESULT TransformCoords(winmdroot.Foundation.POINTL* pPtlHimetric, global::System.Drawing.PointF* pPtfContainer, uint dwFlags) 200 return ((delegate *unmanaged [Stdcall]<IOleControlSite*,winmdroot.Foundation.POINTL* ,global::System.Drawing.PointF* ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IOleControlSite*)Unsafe.AsPointer(ref this), pPtlHimetric, pPtfContainer, dwFlags); 342 internal delegate *unmanaged [Stdcall]<IOleControlSite*,winmdroot.Foundation.POINTL* ,global::System.Drawing.PointF* ,uint ,winmdroot.Foundation.HRESULT> TransformCoords_7; 390 unsafe winmdroot.Foundation.HRESULT TransformCoords(winmdroot.Foundation.POINTL* pPtlHimetric, global::System.Drawing.PointF* pPtfContainer, uint dwFlags);