236 references to PointF
PresentationCore (1)
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
50value = new PointF(classInfo.GetSingle("x"), classInfo.GetSingle("y"));
PresentationCore.Tests (1)
BinaryFormat\SystemDrawingTests.cs (1)
14PointF input = new(1.5f, 2.1f);
System.Drawing.Common.Tests (220)
mono\System.Drawing\GraphicsTests.cs (10)
2421Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new PointF(0, 0))); 2429g.DrawImage(bmp, new PointF(0, 0)); 2463new(0, 0), new(1, 1), new(2, 2) 2712PointF p = new(1, 1); 2719PointF p = new(1, 1); 2726PointF p = new(1, 1); 2733PointF p = new(1, 1); 2945ptf[i] = new PointF(i, i);
System\Drawing\Drawing2D\GraphicsPathTests.cs (178)
223gpfPointsloat.AddLine(new PointF(1, 1), new PointF(2, 2)); 241gpf.AddLine(new PointF(49, 157), new PointF(75, 196)); 242gpf.AddLine(new PointF(75, 196), new PointF(102, 209)); 246gpf.AddLine(new PointF(102, 209), new PointF(75, 196)); 259gpf.AddLines(new PointF[] { new(1, 1), new(2, 2) }); 268gpi.AddLines(new PointF[] { new(1, 1) }); 272gpf.AddLines(new PointF[] { new(1, 1) }); 373gpf.AddBezier(new PointF(1, 1), new PointF(2, 2), new PointF(3, 3), new PointF(4, 4)); 390gpf.AddBezier(new PointF(0, 0), new PointF(0, 0), new PointF(0, 0), new PointF(0, 0)); 394gpf.AddBezier(new PointF(0, 0), new PointF(0, 0), new PointF(0, 0), new PointF(0, 0)); 434yield return new object[] { new PointF[1] { new(1f, 1f) } }; 435yield return new object[] { new PointF[2] { new(1f, 1f), new(2f, 2f) } }; 436yield return new object[] { new PointF[3] { new(1f, 1f), new(2f, 2f), new(3f, 3f) } }; 517new PointF (37f, 185f), 518new PointF (99f, 185f), 519new PointF (161f, 159f), 520new PointF (223f, 185f), 521new PointF (285f, 54f), 526new PointF (37f, 185f), 527new PointF (47.33333f, 185f), 528new PointF (78.3333f, 189.3333f), 529new PointF (99f, 185f), 530new PointF (119.6667f, 180.6667f), 531new PointF (140.3333f, 159f), 532new PointF (161f, 159f), 533new PointF (181.6667f, 159f), 534new PointF (202.3333f, 202.5f), 535new PointF (223f, 185f), 536new PointF (243.6667f, 167.5f), 537new PointF (274.6667f, 75.8333f), 538new PointF (285f, 54f), 565yield return new object[] { new PointF[1] { new(1f, 1f) } }; 604() => gp.AddCurve(new PointF[2] { new(1f, 1f), new(2f, 2f) }, 0, segment, 0.5f)); 615() => gp.AddCurve(new PointF[3] { new(1f, 1f), new(0f, 20f), new(20f, 0f) }, 1, 2, 0.5f)); 630gpf.AddClosedCurve(new PointF[3] { new(1, 1), new(2, 2), new(3, 3) }); 644gpf.AddClosedCurve(new PointF[3] { new(1, 1), new(1, 1), new(1, 1) }); 646gpf.AddClosedCurve(new PointF[3] { new(1, 1), new(1, 1), new(1, 1) }); 658gpf.AddClosedCurve(new PointF[3] { new(1, 1), new(2, 2), new(3, 3) }, 0.5f); 688yield return new object[] { new PointF[1] { new(1f, 1f) } }; 689yield return new object[] { new PointF[2] { new(1f, 1f), new(2f, 2f) } }; 893gpf.AddPolygon(new PointF[3] { new(1, 1), new(2, 2), new(3, 3) }); 918gpf.AddPolygon(new PointF[3] { new(1, 1), new(2, 2), new(3, 3) }); 922gpf.AddPolygon(new PointF[3] { new(1, 1), new(2, 2), new(3, 3) }); 926gpf.AddPolygon(new PointF[3] { new(1, 1), new(2, 2), new(3, 3) }); 930gpf.AddPolygon(new PointF[3] { new(1, 1), new(2, 2), new(3, 3) }); 946yield return new object[] { new PointF[1] { new(1f, 1f) } }; 947yield return new object[] { new PointF[2] { new(1f, 1f), new(2f, 2f) } }; 998gpf.AddString("mono", FontFamily.GenericMonospace, 0, 10, new PointF(10f, 10f), StringFormat.GenericDefault); 1026gpf.AddString("mono", FontFamily.GenericMonospace, 0, -10, new PointF(10f, 10f), StringFormat.GenericDefault); 1058gpi.AddString(string.Empty, FontFamily.GenericMonospace, 0, 10, new PointF(10f, 10f), StringFormat.GenericDefault); 1069gp.AddString(null, FontFamily.GenericMonospace, 0, 10, new PointF(10f, 10f), StringFormat.GenericDefault)); 1652new PointF(0.5f, 0.5f), new PointF(3.5f, 0.5f), new PointF(3.5f, 3.5f), 1653new PointF(0.5f, 3.5f), new PointF(1.5f, 3.0f), new PointF(1.0f, 2.5f), 1654new PointF(3.0f, 2.5f), new PointF(2.5f, 3.0f), new PointF(2.5f, 1.0f), 1655new PointF(3.0f, 1.5f), new PointF(1.0f, 1.5f), new PointF(1.5f, 1.0f), 2073new PointF(1f, 1f), new PointF(2f, 2f) 2088new PointF(2.99990582f, 2.01370716f), new PointF(2.99984312f, 2.018276f), 2089new PointF(2.99974918f, 2.02284455f), new PointF(2.999624f, 2.027412f), 2104new PointF(1f, 1f), new PointF(2f, 2f), 2105new PointF(3f, 3f), new PointF(4f, 4f), 2121new PointF(1f, 1f), new PointF(1.16666663f, 1.16666663f), 2122new PointF(1.83333325f, 1.83333325f), new PointF(2f, 2f) 2146new PointF(1f, 1f), new PointF(3f, 1f), 2147new PointF(3f, 3f), new PointF(1f, 3f) 2172new PointF(2f, 2f), new PointF(2.99990582f, 2.01370716f), 2173new PointF(2.99984312f, 2.018276f), new PointF(2.99974918f, 2.02284455f), 2174new PointF(2.999624f, 2.027412f) 2189new PointF(1f, 1f), 2190new PointF(2f, 2f), 2191new PointF(3f, 3f) 2229new PointF(4.2f, 4.5f), new PointF(15.8f, 4.5f), 2230new PointF(10.0f, 16.1f), new PointF(10.4f, 14.8f), 2231new PointF(9.6f, 14.8f), new PointF(14.6f, 4.8f), 2232new PointF(15.0f, 5.5f), new PointF(5.0f, 5.5f), 2233new PointF(5.4f, 4.8f) 2260PointF fPoint = new(13.0f, 2.0f); 2288PointF fPoint = new(29.0f, 29.0f); 2354new(27.499994f, 10), 2355new(28.880707f, 9.999997f), 2356new(29.999996f, 11.119284f), 2357new(29.999998f, 12.499999f), 2358new(29.999998f, 12.499999f), 2359new(29.999998f, 12.5f), 2360new(29.999998f, 12.5f), 2361new(29.999998f, 27.499998f), 2362new(29.999998f, 28.88071f), 2363new(28.88071f, 29.999998f), 2364new(27.5f, 29.999998f), 2365new(12.500001f, 29.999998f), 2366new(11.119289f, 30), 2367new(10.000001f, 28.880713f), 2368new(10f, 27.5f), 2369new(9.999999f, 12.500001f), 2370new(9.999998f, 11.119289f), 2371new(11.119286f, 10.000001f), 2372new(12.499997f, 9.999999f), 2385new(27.499994f, 10), 2386new(28.880707f, 9.999997f), 2387new(29.999996f, 11.119284f), 2388new(29.999998f, 12.499999f), 2389new(29.999998f, 12.499999f), 2390new(29.999998f, 12.5f), 2391new(29.999998f, 12.5f), 2392new(29.999998f, 27.499998f), 2393new(29.999998f, 28.88071f), 2394new(28.88071f, 29.999998f), 2395new(27.5f, 29.999998f), 2396new(12.500001f, 29.999998f), 2397new(11.119289f, 30), 2398new(10.000001f, 28.880713f), 2399new(10f, 27.5f), 2400new(9.999999f, 12.500001f), 2401new(9.999998f, 11.119289f), 2402new(11.119286f, 10.000001f), 2403new(12.499997f, 9.999999f),
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (4)
40using LinearGradientBrush brush = new(new PointF(float.NaN, float.NaN), new PointF(float.PositiveInfinity, float.NegativeInfinity), Color.Plum, Color.Red); 70Assert.Throws<OutOfMemoryException>(() => new LinearGradientBrush(new PointF(x, y), new PointF(x, y), Color.Fuchsia, Color.GhostWhite));
System\Drawing\Drawing2D\MatrixTests.cs (2)
424yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 180, new PointF(10, 10), MatrixOrder.Prepend, new float[] { -10, -20, -30, -40, 850, 1260 }, null, false }; 425yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 180, new PointF(10, 10), MatrixOrder.Append, new float[] { -10, -20, -30, -40, -30, -40 }, null, false };
System\Drawing\Drawing2D\PathGradientBrushTests.cs (5)
114path.AddLines(new PointF[] { new(1, 1) }); 219PointF centralPoint = new(float.MaxValue, float.MinValue); 220PointF defaultCentralPoint = new(10.5f, 16f); 899PointF point = new(2.5f, 3.4f); 945Assert.Equal(new PointF(10.5f, 16f), brush.CenterPoint);
System\Drawing\Graphics_DrawLineTests.cs (4)
30graphics.DrawLines(pen, new PointF[] { new(1.0f, 1.0f), new(1.0f, 10.0f), new(20.0f, 5.0f), new(25.0f, 30.0f) });
System\Drawing\Graphics_GetContextTests.Core.cs (9)
50Assert.Equal(new PointF(1, 2), offset); 54Assert.Equal(new PointF(1, 2), offset); 67Assert.Equal(new PointF(1, 2), offset); 72Assert.Equal(new PointF(1, 2), offset); 86Assert.Equal(new PointF(1, 2), offset); 91Assert.Equal(new PointF(1, 2), offset); 107Assert.Equal(new PointF(2, 4), offset); 112Assert.Equal(new PointF(2, 4), offset); 130Assert.Equal(new PointF(2, 4), offset);
System\Drawing\GraphicsTests.cs (6)
1788new PointF[] { new(0.5f, -1.5f), new Point(0, -1) } 1796new PointF[] { new(0.5f, -1.5f), new Point(0, -1) } 1841var points = new PointF[] { new(1, 1) }; 1854AssertExtensions.Throws<ArgumentException>(null, () => graphics.TransformPoints(destSpace, CoordinateSpace.World, new PointF[] { new(1, 1) })); 1865AssertExtensions.Throws<ArgumentException>(null, () => graphics.TransformPoints(CoordinateSpace.World, srcSpace, new PointF[] { new(1, 1) })); 2829PointF pointF = new(10.5f, 10.5f);
System\Drawing\RegionTests.cs (2)
1416AssertExtensions.Throws<ArgumentException>(null, () => disposedRegion.IsVisible(new PointF(1, 2))); 1420AssertExtensions.Throws<ArgumentException>(null, () => disposedRegion.IsVisible(new PointF(1, 2), s_graphic));
System.Drawing.Primitives (7)
System\Drawing\Point.cs (1)
79public static implicit operator PointF(Point p) => new PointF(p.X, p.Y);
System\Drawing\PointF.cs (4)
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)
180value = new PointF(classInfo.GetSingle("x"), classInfo.GetSingle("y"));
System.Windows.Forms (2)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1090PointF pcont = new(sz.Width, sz.Height);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1125PointF pcont = new(sz.Width, sz.Height);
System.Windows.Forms.Tests (3)
System\Resources\ResxDataNodeTests.cs (1)
92new PointF(1.0f, 2.0f),
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (2)
144new PointF(1, 2), 1003public PointF PointF = new(1, 2);
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
327pe.Graphics.DrawString($"Design time \n{Control.Site?.Name} !", Control.Font, SystemBrushes.WindowText, new PointF(12, 12));