21 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.Common (8)
System\Drawing\Drawing2D\GraphicsPath.cs (2)
244public bool IsVisible(float x, float y) => IsVisible(new PointF(x, y), null); 272public bool IsOutlineVisible(float x, float y, Pen pen) => IsOutlineVisible(new PointF(x, y), pen, null);
System\Drawing\Drawing2D\Matrix.cs (1)
166return new PointF(elements[4], elements[5]);
System\Drawing\Drawing2D\PathGradientBrush.cs (1)
382return new PointF(scaleX, scaleY);
System\Drawing\Graphics.cs (2)
3365offset = new PointF(translation.X, translation.Y); 3379offset = new PointF(translation.X, translation.Y);
System\Drawing\Region.cs (2)
279public bool IsVisible(float x, float y) => IsVisible(new PointF(x, y), null); 283public bool IsVisible(float x, float y, Graphics? g) => IsVisible(new PointF(x, y), g);
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 (2)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1087PointF pcont = new(sz.Width, sz.Height);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1119PointF pcont = new(sz.Width, sz.Height);
356 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 (2)
System\Windows\Nrbf\SerializationRecordExtensions.cs (2)
32/// Tries to get this object as a <see cref="PointF"/>. 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.Common (237)
Special\Forwards.cs (1)
9[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.PointF))]
System\Drawing\Drawing2D\GraphicsPath.cs (74)
27public GraphicsPath(PointF[] pts, byte[] types) : this(pts, types, FillMode.Alternate) { } 30public GraphicsPath(PointF[] pts, byte[] types, FillMode fillMode) 41GraphicsPath(ReadOnlySpan<PointF> pts, ReadOnlySpan<byte> types, FillMode fillMode = FillMode.Alternate) 48fixed (PointF* p = pts) 176Points = new PointF[count] 183fixed (PointF* p = pathData.Points) 236public PointF GetLastPoint() 238PointF point; 246public bool IsVisible(PointF point) => IsVisible(point, null); 262public bool IsVisible(PointF pt, Graphics? graphics) => IsVisible(pt.X, pt.Y, graphics); 266public bool IsVisible(Point point) => IsVisible((PointF)point, null); 270public bool IsVisible(Point pt, Graphics? graphics) => IsVisible((PointF)pt, graphics); 274public bool IsOutlineVisible(PointF point, Pen pen) => IsOutlineVisible(point, pen, null); 293public bool IsOutlineVisible(PointF pt, Pen pen, Graphics? graphics) => IsOutlineVisible(pt.X, pt.Y, pen, graphics); 301public bool IsOutlineVisible(Point pt, Pen pen, Graphics? graphics) => IsOutlineVisible((PointF)pt, pen, graphics); 303public void AddLine(PointF pt1, PointF pt2) => AddLine(pt1.X, pt1.Y, pt2.X, pt2.Y); 324public void AddLines(params PointF[] points) => AddLines(points.OrThrowIfNull().AsSpan()); 326/// <inheritdoc cref="AddLines(PointF[])"/> 332void AddLines(params ReadOnlySpan<PointF> points) 339fixed (PointF* p = points) 350/// <inheritdoc cref="AddLines(PointF[])"/> 353/// <inheritdoc cref="AddLines(PointF[])"/> 388public void AddBezier(PointF pt1, PointF pt2, PointF pt3, PointF pt4) => 401public void AddBeziers(params PointF[] points) => AddBeziers(points.OrThrowIfNull().AsSpan()); 403/// <inheritdoc cref="AddBeziers(PointF[])"/> 409void AddBeziers(params ReadOnlySpan<PointF> points) 411fixed (PointF* p = points) 424/// <inheritdoc cref="AddBeziers(PointF[])"/> 427/// <inheritdoc cref="AddBeziers(PointF[])"/> 445/// <inheritdoc cref="AddCurve(PointF[], int, int, float)"/> 446public void AddCurve(params PointF[] points) => AddCurve(points.AsSpan(), 0.5f); 448/// <inheritdoc cref="AddCurve(PointF[], int, int, float)"/> 449public void AddCurve(PointF[] points, float tension) => AddCurve(points.AsSpan(), tension); 465public void AddCurve(PointF[] points, int offset, int numberOfSegments, float tension) 467fixed (PointF* p = points) 482/// <inheritdoc cref="AddCurve(PointF[], int, int, float)"/> 483public void AddCurve(params ReadOnlySpan<PointF> points) => AddCurve(points, 0.5f); 486/// <inheritdoc cref="AddCurve(PointF[], int, int, float)"/> 492void AddCurve(ReadOnlySpan<PointF> points, float tension) 494fixed (PointF* p = points) 506/// <inheritdoc cref="AddCurve(PointF[], int, int, float)"/> 509/// <inheritdoc cref="AddCurve(PointF[], int, int, float)"/> 512/// <inheritdoc cref="AddCurve(PointF[], int, int, float)"/> 530/// <inheritdoc cref="AddCurve(PointF[], int, int, float)"/> 534/// <inheritdoc cref="AddCurve(PointF[], int, int, float)"/> 555public void AddClosedCurve(params PointF[] points) => AddClosedCurve(points, 0.5f); 558public void AddClosedCurve(PointF[] points, float tension) => AddClosedCurve(points.OrThrowIfNull().AsSpan(), tension); 562public void AddClosedCurve(params ReadOnlySpan<PointF> points) => AddClosedCurve(points, 0.5f); 571void AddClosedCurve(ReadOnlySpan<PointF> points, float tension) 573fixed (PointF* p = points) 587/// <inheritdoc cref="AddCurve(PointF[], int, int, float)"/> 731public void AddPolygon(params PointF[] points) => AddPolygon(points.OrThrowIfNull().AsSpan()); 739void AddPolygon(params ReadOnlySpan<PointF> points) 741fixed (PointF* p = points) 777public void AddString(string s, FontFamily family, int style, float emSize, PointF origin, StringFormat? format) => 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) => 903ReadOnlySpan<PointF> destPoints, 909fixed (PointF* p = destPoints) 980public PointF[] PathPoints 990PointF[] points = new PointF[count]; 1010int GetPathPoints(Span<PointF> destination) 1017fixed (PointF* p = destination)
System\Drawing\Drawing2D\GraphicsPathIterator.cs (10)
150/// <inheritdoc cref="CopyData(ref PointF[], ref byte[], int, int)"/> 151public unsafe int Enumerate(ref PointF[] points, ref byte[] types) 154/// <inheritdoc cref="CopyData(ref PointF[], ref byte[], int, int)"/> 160unsafe int Enumerate(Span<PointF> points, Span<byte> types) 173fixed (PointF* p = points) 193/// <param name="points">Upon return, contains <see cref="PointF"/> structures that represent the points in the path.</param> 198public unsafe int CopyData(ref PointF[] points, ref byte[] types, int startIndex, int endIndex) 201/// <inheritdoc cref="CopyData(ref PointF[], ref byte[], int, int)"/> 207unsafe int CopyData(Span<PointF> points, Span<byte> types, int startIndex, int endIndex) 221fixed (PointF* p = points)
System\Drawing\Drawing2D\LinearGradientBrush.cs (4)
12public LinearGradientBrush(PointF point1, PointF point2, Color color1, Color color2) 25: this((PointF)point1, (PointF)point2, color1, color2)
System\Drawing\Drawing2D\Matrix.cs (16)
51public Matrix(RectangleF rect, params PointF[] plgpts) 57fixed (PointF* p = plgpts) 160internal PointF Offset 218public void RotateAt(float angle, PointF point) => RotateAt(angle, point, MatrixOrder.Prepend); 219public void RotateAt(float angle, PointF point, MatrixOrder order) 258public void TransformPoints(params PointF[] pts) 270void TransformPoints(params ReadOnlySpan<PointF> pts) 272fixed (PointF* p = pts) 316public void TransformVectors(params PointF[] pts) 322/// <inheritdoc cref="TransformVectors(PointF[])"/> 328void TransformVectors(params ReadOnlySpan<PointF> pts) 330fixed (PointF* p = pts) 341/// <inheritdoc cref="TransformVectors(PointF[])"/> 345/// <inheritdoc cref="TransformVectors(PointF[])"/> 349/// <inheritdoc cref="TransformVectors(PointF[])"/> 356/// <inheritdoc cref="TransformVectors(PointF[])"/>
System\Drawing\Drawing2D\PathData.cs (1)
10public PointF[]? Points { get; set; }
System\Drawing\Drawing2D\PathGradientBrush.cs (14)
16public PathGradientBrush(params PointF[] points) : this(points, WrapMode.Clamp) { } 19/// <inheritdoc cref="PathGradientBrush(PointF[])"/> 20public PathGradientBrush(params ReadOnlySpan<PointF> points) : this(WrapMode.Clamp, points) { } 27public PathGradientBrush(PointF[] points, WrapMode wrapMode) : this(wrapMode, points.OrThrowIfNull().AsSpan()) { } 29/// <inheritdoc cref="PathGradientBrush(PointF[], WrapMode)"/> 35PathGradientBrush(WrapMode wrapMode, params ReadOnlySpan<PointF> points) 43fixed (PointF* p = points) 56/// <inheritdoc cref="PathGradientBrush(PointF[])"/> 59/// <inheritdoc cref="PathGradientBrush(PointF[])"/> 67/// <inheritdoc cref="PathGradientBrush(PointF[], WrapMode)"/> 70/// <inheritdoc cref="PathGradientBrush(PointF[], WrapMode)"/> 171public PointF CenterPoint 175PointF point; 374public PointF FocusScales
System\Drawing\Graphics.cs (111)
596public bool IsVisible(PointF point) => IsVisible(point.X, point.Y); 699public void DrawBezier(Pen pen, PointF pt1, PointF pt2, PointF pt3, PointF pt4) => 855public void DrawPolygon(Pen pen, params PointF[] points) => DrawPolygon(pen, points.OrThrowIfNull().AsSpan()); 863void DrawPolygon(Pen pen, params ReadOnlySpan<PointF> points) 867fixed (PointF* p = points) 915public void DrawCurve(Pen pen, params PointF[] points) => DrawCurve(pen, points.OrThrowIfNull().AsSpan()); 923void DrawCurve(Pen pen, params ReadOnlySpan<PointF> points) 927fixed (PointF* p = points) 936public void DrawCurve(Pen pen, PointF[] points, float tension) => 945void DrawCurve(Pen pen, ReadOnlySpan<PointF> points, float tension) 949fixed (PointF* p = points) 962public void DrawCurve(Pen pen, PointF[] points, int offset, int numberOfSegments) => 967public void DrawCurve(Pen pen, ReadOnlySpan<PointF> points, int offset, int numberOfSegments) => 972public void DrawCurve(Pen pen, PointF[] points, int offset, int numberOfSegments, float tension) => 981void DrawCurve(Pen pen, ReadOnlySpan<PointF> points, int offset, int numberOfSegments, float tension) 985fixed (PointF* p = points) 1081/// <inheritdoc cref="DrawClosedCurve(Pen, PointF[], float, FillMode)"/> 1082public void DrawClosedCurve(Pen pen, params PointF[] points) => 1085/// <inheritdoc cref="DrawClosedCurve(Pen, PointF[], float, FillMode)"/> 1091void DrawClosedCurve(Pen pen, params ReadOnlySpan<PointF> points) 1095fixed (PointF* p = points) 1113public void DrawClosedCurve(Pen pen, PointF[] points, float tension, FillMode fillmode) => 1116/// <inheritdoc cref="DrawClosedCurve(Pen, PointF[], float, FillMode)"/> 1122void DrawClosedCurve(Pen pen, ReadOnlySpan<PointF> points, float tension, FillMode fillmode) 1126fixed (PointF* p = points) 1138/// <inheritdoc cref="DrawClosedCurve(Pen, PointF[], float, FillMode)"/> 1141/// <inheritdoc cref="DrawClosedCurve(Pen, PointF[], float, FillMode)"/> 1162/// <inheritdoc cref="DrawClosedCurve(Pen, PointF[], float, FillMode)"/> 1167/// <inheritdoc cref="DrawClosedCurve(Pen, PointF[], float, FillMode)"/> 1295public void FillPolygon(Brush brush, params PointF[] points) => FillPolygon(brush, points, FillMode.Alternate); 1299public void FillPolygon(Brush brush, params ReadOnlySpan<PointF> points) => FillPolygon(brush, points, FillMode.Alternate); 1303public void FillPolygon(Brush brush, PointF[] points, FillMode fillMode) => 1312void FillPolygon(Brush brush, ReadOnlySpan<PointF> points, FillMode fillMode) 1316fixed (PointF* p = points) 1444/// <inheritdoc cref="FillClosedCurve(Brush, PointF[], FillMode, float)"/> 1445public void FillClosedCurve(Brush brush, params PointF[] points) => 1448/// <inheritdoc cref="FillClosedCurve(Brush, PointF[], FillMode, float)"/> 1454void FillClosedCurve(Brush brush, params ReadOnlySpan<PointF> points) 1458fixed (PointF* p = points) 1469/// <inheritdoc cref="FillClosedCurve(Brush, PointF[], FillMode, float)"/> 1470public void FillClosedCurve(Brush brush, PointF[] points, FillMode fillmode) => 1474/// <inheritdoc cref="FillClosedCurve(Brush, PointF[], FillMode, float)"/> 1475public void FillClosedCurve(Brush brush, ReadOnlySpan<PointF> points, FillMode fillmode) => 1486public void FillClosedCurve(Brush brush, PointF[] points, FillMode fillmode, float tension) => 1489/// <inheritdoc cref="FillClosedCurve(Brush, PointF[], FillMode, float)"/> 1495void FillClosedCurve(Brush brush, ReadOnlySpan<PointF> points, FillMode fillmode, float tension) 1499fixed (PointF* p = points) 1512/// <inheritdoc cref="FillClosedCurve(Brush, PointF[], FillMode, float)"/> 1516/// <inheritdoc cref="FillClosedCurve(Brush, PointF[], FillMode, float)"/> 1537/// <inheritdoc cref="FillClosedCurve(Brush, PointF[], FillMode, float)"/> 1542/// <inheritdoc cref="FillClosedCurve(Brush, PointF[], FillMode, float)"/> 1548/// <inheritdoc cref="FillClosedCurve(Brush, PointF[], FillMode, float)"/> 1552/// <inheritdoc cref="FillClosedCurve(Brush, PointF[], FillMode, float)"/> 1603/// <param name="point"><see cref="PointF"/>structure that specifies the upper-left corner of the drawn text.</param> 1607public void DrawString(string? s, Font font, Brush brush, PointF point) => 1611/// <inheritdoc cref="DrawString(string?, Font, Brush, PointF)"/> 1612public void DrawString(ReadOnlySpan<char> s, Font font, Brush brush, PointF point) => 1648/// <param name="point"><see cref="PointF"/>structure that specifies the upper-left corner of the drawn text.</param> 1656public void DrawString(string? s, Font font, Brush brush, PointF point, StringFormat? format) => 1660/// <inheritdoc cref="DrawString(string?, Font, Brush, PointF, StringFormat?)"/> 1661public void DrawString(ReadOnlySpan<char> s, Font font, Brush brush, PointF point, StringFormat? format) => 1826/// <param name="origin"><see cref="PointF"/> structure that represents the upper-left corner of the text.</param> 1828public SizeF MeasureString(string? text, Font font, PointF origin, StringFormat? stringFormat) 1832/// <inheritdoc cref="MeasureString(string?, Font, PointF, StringFormat?)"/> 1833public SizeF MeasureString(ReadOnlySpan<char> text, Font font, PointF origin, StringFormat? stringFormat) 1875/// the <see cref="DrawString(string?, Font, Brush, PointF)"/> method adjusts glyph points to optimize display 1996public void DrawImage(Image image, PointF point) => DrawImage(image, point.X, point.Y); 2044public void DrawImage(Image image, PointF[] destPoints) 2064fixed (PointF* p = destPoints) 2128public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit) 2137fixed (PointF* p = destPoints) 2154public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit, ImageAttributes? imageAttr) => 2159PointF[] destPoints, 2168PointF[] destPoints, 2182fixed (PointF* p = destPoints) 2360public void DrawLine(Pen pen, PointF pt1, PointF pt2) => DrawLine(pen, pt1.X, pt1.Y, pt2.X, pt2.Y); 2363public void DrawLines(Pen pen, params PointF[] points) => DrawLines(pen, points.OrThrowIfNull().AsSpan()); 2371void DrawLines(Pen pen, params ReadOnlySpan<PointF> points) 2375fixed (PointF* p = points) 2449public void EnumerateMetafile(Metafile metafile, PointF destPoint, EnumerateMetafileProc callback) => 2452public void EnumerateMetafile(Metafile metafile, PointF destPoint, EnumerateMetafileProc callback, IntPtr callbackData) => 2473public void EnumerateMetafile(Metafile metafile, PointF[] destPoints, EnumerateMetafileProc callback) => 2478PointF[] destPoints, 2490PointF destPoint, 2497PointF destPoint, 2550PointF[] destPoints, 2557PointF[] destPoints, 2585public void TransformPoints(Drawing2DCoordinateSpace destSpace, Drawing2DCoordinateSpace srcSpace, params PointF[] pts) 2591/// <inheritdoc cref="TransformPoints(Drawing2DCoordinateSpace, Drawing2DCoordinateSpace, PointF[])"/> 2597void TransformPoints(Drawing2DCoordinateSpace destSpace, Drawing2DCoordinateSpace srcSpace, params ReadOnlySpan<PointF> pts) 2599fixed (PointF* p = pts) 2610/// <inheritdoc cref="TransformPoints(Drawing2DCoordinateSpace, Drawing2DCoordinateSpace, PointF[])"/> 2617/// <inheritdoc cref="TransformPoints(Drawing2DCoordinateSpace, Drawing2DCoordinateSpace, PointF[])"/> 2789public void DrawBeziers(Pen pen, params PointF[] points) => 2798void DrawBeziers(Pen pen, params ReadOnlySpan<PointF> points) 2802fixed (PointF* p = points) 2941PointF destPoint, 2966=> EnumerateMetafile(metafile, (PointF)destPoint, callback, callbackData, imageAttr); 2998PointF[] destPoints, 3008fixed (PointF* p = destPoints) 3056PointF destPoint, 3088(PointF)destPoint, 3131PointF[] destPoints, 3143fixed (PointF* p = destPoints) 3296PointF offset = default; 3361public void GetContextInfo(out PointF offset) 3375public void GetContextInfo(out PointF offset, out Region? clip)
System\Drawing\Icon.cs (2)
367PointF offset = transform.Offset; 383PointF offset = transform.Offset;
System\Drawing\Internal\GpPathData.cs (1)
12public PointF* Points;
System\Drawing\Region.cs (3)
281public bool IsVisible(PointF point) => IsVisible(point, null); 285public bool IsVisible(PointF point, Graphics? g) 322public bool IsVisible(Point point, Graphics? g) => IsVisible((PointF)point, g);
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 (8)
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)
1107PointF pcont = default; 1119PointF 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\DrawingEventArgs.cs (1)
156graphics.GetContextInfo(out PointF offset, out Region? clip);
System.Windows.Forms.Primitives (11)
_generated\203\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);
_generated\499\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)