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