21 instantiations of PointF
Microsoft.Private.Windows.Core (1)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
157
value = new
PointF
(classInfo.GetSingle("x"), classInfo.GetSingle("y"));
PresentationCore (1)
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
50
value = new
PointF
(classInfo.GetSingle("x"), classInfo.GetSingle("y"));
System.Drawing.Common (8)
System\Drawing\Drawing2D\GraphicsPath.cs (2)
244
public bool IsVisible(float x, float y) => IsVisible(new
PointF
(x, y), null);
272
public bool IsOutlineVisible(float x, float y, Pen pen) => IsOutlineVisible(new
PointF
(x, y), pen, null);
System\Drawing\Drawing2D\Matrix.cs (1)
166
return new
PointF
(elements[4], elements[5]);
System\Drawing\Drawing2D\PathGradientBrush.cs (1)
382
return new
PointF
(scaleX, scaleY);
System\Drawing\Graphics.cs (2)
3365
offset = new
PointF
(translation.X, translation.Y);
3379
offset = new
PointF
(translation.X, translation.Y);
System\Drawing\Region.cs (2)
279
public bool IsVisible(float x, float y) => IsVisible(new
PointF
(x, y), null);
283
public bool IsVisible(float x, float y, Graphics? g) => IsVisible(new
PointF
(x, y), g);
System.Drawing.Primitives (8)
System\Drawing\Point.cs (1)
79
public static implicit operator PointF(Point p) => new
PointF
(p.X, p.Y);
System\Drawing\PointF.cs (5)
81
public static explicit operator PointF(Vector2 vector) => new
PointF
(vector);
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)
157
value = new
PointF
(classInfo.GetSingle("x"), classInfo.GetSingle("y"));
System.Windows.Forms (2)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1087
PointF pcont =
new
(sz.Width, sz.Height);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1119
PointF 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.
194
public static void WritePointF(Stream stream,
PointF
value)
199
new ClassInfo(1, typeof(
PointF
).FullName!, s_pointMemberNames),
701
case
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)
176
typeof(
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)
27
public GraphicsPath(
PointF
[] pts, byte[] types) : this(pts, types, FillMode.Alternate) { }
30
public GraphicsPath(
PointF
[] pts, byte[] types, FillMode fillMode)
41
GraphicsPath(ReadOnlySpan<
PointF
> pts, ReadOnlySpan<byte> types, FillMode fillMode = FillMode.Alternate)
48
fixed (
PointF
* p = pts)
176
Points = new
PointF
[count]
183
fixed (
PointF
* p = pathData.Points)
236
public
PointF
GetLastPoint()
238
PointF
point;
246
public bool IsVisible(
PointF
point) => IsVisible(point, null);
262
public bool IsVisible(
PointF
pt, Graphics? graphics) => IsVisible(pt.X, pt.Y, graphics);
266
public bool IsVisible(Point point) => IsVisible((
PointF
)point, null);
270
public bool IsVisible(Point pt, Graphics? graphics) => IsVisible((
PointF
)pt, graphics);
274
public bool IsOutlineVisible(
PointF
point, Pen pen) => IsOutlineVisible(point, pen, null);
293
public bool IsOutlineVisible(
PointF
pt, Pen pen, Graphics? graphics) => IsOutlineVisible(pt.X, pt.Y, pen, graphics);
301
public bool IsOutlineVisible(Point pt, Pen pen, Graphics? graphics) => IsOutlineVisible((
PointF
)pt, pen, graphics);
303
public void AddLine(
PointF
pt1,
PointF
pt2) => AddLine(pt1.X, pt1.Y, pt2.X, pt2.Y);
324
public void AddLines(params
PointF
[] points) => AddLines(points.OrThrowIfNull().AsSpan());
326
/// <inheritdoc cref="AddLines(
PointF
[])"/>
332
void AddLines(params ReadOnlySpan<
PointF
> points)
339
fixed (
PointF
* p = points)
350
/// <inheritdoc cref="AddLines(
PointF
[])"/>
353
/// <inheritdoc cref="AddLines(
PointF
[])"/>
388
public void AddBezier(
PointF
pt1,
PointF
pt2,
PointF
pt3,
PointF
pt4) =>
401
public void AddBeziers(params
PointF
[] points) => AddBeziers(points.OrThrowIfNull().AsSpan());
403
/// <inheritdoc cref="AddBeziers(
PointF
[])"/>
409
void AddBeziers(params ReadOnlySpan<
PointF
> points)
411
fixed (
PointF
* p = points)
424
/// <inheritdoc cref="AddBeziers(
PointF
[])"/>
427
/// <inheritdoc cref="AddBeziers(
PointF
[])"/>
445
/// <inheritdoc cref="AddCurve(
PointF
[], int, int, float)"/>
446
public void AddCurve(params
PointF
[] points) => AddCurve(points.AsSpan(), 0.5f);
448
/// <inheritdoc cref="AddCurve(
PointF
[], int, int, float)"/>
449
public void AddCurve(
PointF
[] points, float tension) => AddCurve(points.AsSpan(), tension);
465
public void AddCurve(
PointF
[] points, int offset, int numberOfSegments, float tension)
467
fixed (
PointF
* p = points)
482
/// <inheritdoc cref="AddCurve(
PointF
[], int, int, float)"/>
483
public void AddCurve(params ReadOnlySpan<
PointF
> points) => AddCurve(points, 0.5f);
486
/// <inheritdoc cref="AddCurve(
PointF
[], int, int, float)"/>
492
void AddCurve(ReadOnlySpan<
PointF
> points, float tension)
494
fixed (
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)"/>
555
public void AddClosedCurve(params
PointF
[] points) => AddClosedCurve(points, 0.5f);
558
public void AddClosedCurve(
PointF
[] points, float tension) => AddClosedCurve(points.OrThrowIfNull().AsSpan(), tension);
562
public void AddClosedCurve(params ReadOnlySpan<
PointF
> points) => AddClosedCurve(points, 0.5f);
571
void AddClosedCurve(ReadOnlySpan<
PointF
> points, float tension)
573
fixed (
PointF
* p = points)
587
/// <inheritdoc cref="AddCurve(
PointF
[], int, int, float)"/>
731
public void AddPolygon(params
PointF
[] points) => AddPolygon(points.OrThrowIfNull().AsSpan());
739
void AddPolygon(params ReadOnlySpan<
PointF
> points)
741
fixed (
PointF
* p = points)
777
public void AddString(string s, FontFamily family, int style, float emSize,
PointF
origin, StringFormat? format) =>
864
/// <inheritdoc cref="Warp(ReadOnlySpan{
PointF
}, RectangleF, Matrix?, WarpMode, float)"/>
865
public void Warp(
PointF
[] destPoints, RectangleF srcRect) => Warp(destPoints, srcRect, null);
867
/// <inheritdoc cref="Warp(ReadOnlySpan{
PointF
}, RectangleF, Matrix?, WarpMode, float)"/>
868
public void Warp(
PointF
[] destPoints, RectangleF srcRect, Matrix? matrix) =>
871
/// <inheritdoc cref="Warp(ReadOnlySpan{
PointF
}, RectangleF, Matrix?, WarpMode, float)"/>
872
public void Warp(
PointF
[] destPoints, RectangleF srcRect, Matrix? matrix, WarpMode warpMode) =>
875
/// <inheritdoc cref="Warp(ReadOnlySpan{
PointF
}, RectangleF, Matrix?, WarpMode, float)"/>
876
public void Warp(
PointF
[] destPoints, RectangleF srcRect, Matrix? matrix, WarpMode warpMode, float flatness) =>
903
ReadOnlySpan<
PointF
> destPoints,
909
fixed (
PointF
* p = destPoints)
980
public
PointF
[] PathPoints
990
PointF
[] points = new
PointF
[count];
1010
int GetPathPoints(Span<
PointF
> destination)
1017
fixed (
PointF
* p = destination)
System\Drawing\Drawing2D\GraphicsPathIterator.cs (10)
150
/// <inheritdoc cref="CopyData(ref
PointF
[], ref byte[], int, int)"/>
151
public unsafe int Enumerate(ref
PointF
[] points, ref byte[] types)
154
/// <inheritdoc cref="CopyData(ref
PointF
[], ref byte[], int, int)"/>
160
unsafe int Enumerate(Span<
PointF
> points, Span<byte> types)
173
fixed (
PointF
* p = points)
193
/// <param name="points">Upon return, contains <see cref="
PointF
"/> structures that represent the points in the path.</param>
198
public unsafe int CopyData(ref
PointF
[] points, ref byte[] types, int startIndex, int endIndex)
201
/// <inheritdoc cref="CopyData(ref
PointF
[], ref byte[], int, int)"/>
207
unsafe int CopyData(Span<
PointF
> points, Span<byte> types, int startIndex, int endIndex)
221
fixed (
PointF
* p = points)
System\Drawing\Drawing2D\LinearGradientBrush.cs (4)
12
public LinearGradientBrush(
PointF
point1,
PointF
point2, Color color1, Color color2)
25
: this((
PointF
)point1, (
PointF
)point2, color1, color2)
System\Drawing\Drawing2D\Matrix.cs (16)
51
public Matrix(RectangleF rect, params
PointF
[] plgpts)
57
fixed (
PointF
* p = plgpts)
160
internal
PointF
Offset
218
public void RotateAt(float angle,
PointF
point) => RotateAt(angle, point, MatrixOrder.Prepend);
219
public void RotateAt(float angle,
PointF
point, MatrixOrder order)
258
public void TransformPoints(params
PointF
[] pts)
270
void TransformPoints(params ReadOnlySpan<
PointF
> pts)
272
fixed (
PointF
* p = pts)
316
public void TransformVectors(params
PointF
[] pts)
322
/// <inheritdoc cref="TransformVectors(
PointF
[])"/>
328
void TransformVectors(params ReadOnlySpan<
PointF
> pts)
330
fixed (
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)
10
public
PointF
[]? Points { get; set; }
System\Drawing\Drawing2D\PathGradientBrush.cs (14)
16
public PathGradientBrush(params
PointF
[] points) : this(points, WrapMode.Clamp) { }
19
/// <inheritdoc cref="PathGradientBrush(
PointF
[])"/>
20
public PathGradientBrush(params ReadOnlySpan<
PointF
> points) : this(WrapMode.Clamp, points) { }
27
public PathGradientBrush(
PointF
[] points, WrapMode wrapMode) : this(wrapMode, points.OrThrowIfNull().AsSpan()) { }
29
/// <inheritdoc cref="PathGradientBrush(
PointF
[], WrapMode)"/>
35
PathGradientBrush(WrapMode wrapMode, params ReadOnlySpan<
PointF
> points)
43
fixed (
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)"/>
171
public
PointF
CenterPoint
175
PointF
point;
374
public
PointF
FocusScales
System\Drawing\Graphics.cs (111)
596
public bool IsVisible(
PointF
point) => IsVisible(point.X, point.Y);
699
public void DrawBezier(Pen pen,
PointF
pt1,
PointF
pt2,
PointF
pt3,
PointF
pt4) =>
855
public void DrawPolygon(Pen pen, params
PointF
[] points) => DrawPolygon(pen, points.OrThrowIfNull().AsSpan());
863
void DrawPolygon(Pen pen, params ReadOnlySpan<
PointF
> points)
867
fixed (
PointF
* p = points)
915
public void DrawCurve(Pen pen, params
PointF
[] points) => DrawCurve(pen, points.OrThrowIfNull().AsSpan());
923
void DrawCurve(Pen pen, params ReadOnlySpan<
PointF
> points)
927
fixed (
PointF
* p = points)
936
public void DrawCurve(Pen pen,
PointF
[] points, float tension) =>
945
void DrawCurve(Pen pen, ReadOnlySpan<
PointF
> points, float tension)
949
fixed (
PointF
* p = points)
962
public void DrawCurve(Pen pen,
PointF
[] points, int offset, int numberOfSegments) =>
967
public void DrawCurve(Pen pen, ReadOnlySpan<
PointF
> points, int offset, int numberOfSegments) =>
972
public void DrawCurve(Pen pen,
PointF
[] points, int offset, int numberOfSegments, float tension) =>
981
void DrawCurve(Pen pen, ReadOnlySpan<
PointF
> points, int offset, int numberOfSegments, float tension)
985
fixed (
PointF
* p = points)
1081
/// <inheritdoc cref="DrawClosedCurve(Pen,
PointF
[], float, FillMode)"/>
1082
public void DrawClosedCurve(Pen pen, params
PointF
[] points) =>
1085
/// <inheritdoc cref="DrawClosedCurve(Pen,
PointF
[], float, FillMode)"/>
1091
void DrawClosedCurve(Pen pen, params ReadOnlySpan<
PointF
> points)
1095
fixed (
PointF
* p = points)
1113
public void DrawClosedCurve(Pen pen,
PointF
[] points, float tension, FillMode fillmode) =>
1116
/// <inheritdoc cref="DrawClosedCurve(Pen,
PointF
[], float, FillMode)"/>
1122
void DrawClosedCurve(Pen pen, ReadOnlySpan<
PointF
> points, float tension, FillMode fillmode)
1126
fixed (
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)"/>
1295
public void FillPolygon(Brush brush, params
PointF
[] points) => FillPolygon(brush, points, FillMode.Alternate);
1299
public void FillPolygon(Brush brush, params ReadOnlySpan<
PointF
> points) => FillPolygon(brush, points, FillMode.Alternate);
1303
public void FillPolygon(Brush brush,
PointF
[] points, FillMode fillMode) =>
1312
void FillPolygon(Brush brush, ReadOnlySpan<
PointF
> points, FillMode fillMode)
1316
fixed (
PointF
* p = points)
1444
/// <inheritdoc cref="FillClosedCurve(Brush,
PointF
[], FillMode, float)"/>
1445
public void FillClosedCurve(Brush brush, params
PointF
[] points) =>
1448
/// <inheritdoc cref="FillClosedCurve(Brush,
PointF
[], FillMode, float)"/>
1454
void FillClosedCurve(Brush brush, params ReadOnlySpan<
PointF
> points)
1458
fixed (
PointF
* p = points)
1469
/// <inheritdoc cref="FillClosedCurve(Brush,
PointF
[], FillMode, float)"/>
1470
public void FillClosedCurve(Brush brush,
PointF
[] points, FillMode fillmode) =>
1474
/// <inheritdoc cref="FillClosedCurve(Brush,
PointF
[], FillMode, float)"/>
1475
public void FillClosedCurve(Brush brush, ReadOnlySpan<
PointF
> points, FillMode fillmode) =>
1486
public void FillClosedCurve(Brush brush,
PointF
[] points, FillMode fillmode, float tension) =>
1489
/// <inheritdoc cref="FillClosedCurve(Brush,
PointF
[], FillMode, float)"/>
1495
void FillClosedCurve(Brush brush, ReadOnlySpan<
PointF
> points, FillMode fillmode, float tension)
1499
fixed (
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>
1607
public void DrawString(string? s, Font font, Brush brush,
PointF
point) =>
1611
/// <inheritdoc cref="DrawString(string?, Font, Brush,
PointF
)"/>
1612
public 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>
1656
public void DrawString(string? s, Font font, Brush brush,
PointF
point, StringFormat? format) =>
1660
/// <inheritdoc cref="DrawString(string?, Font, Brush,
PointF
, StringFormat?)"/>
1661
public 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>
1828
public SizeF MeasureString(string? text, Font font,
PointF
origin, StringFormat? stringFormat)
1832
/// <inheritdoc cref="MeasureString(string?, Font,
PointF
, StringFormat?)"/>
1833
public 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
1996
public void DrawImage(Image image,
PointF
point) => DrawImage(image, point.X, point.Y);
2044
public void DrawImage(Image image,
PointF
[] destPoints)
2064
fixed (
PointF
* p = destPoints)
2128
public void DrawImage(Image image,
PointF
[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit)
2137
fixed (
PointF
* p = destPoints)
2154
public void DrawImage(Image image,
PointF
[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit, ImageAttributes? imageAttr) =>
2159
PointF
[] destPoints,
2168
PointF
[] destPoints,
2182
fixed (
PointF
* p = destPoints)
2360
public void DrawLine(Pen pen,
PointF
pt1,
PointF
pt2) => DrawLine(pen, pt1.X, pt1.Y, pt2.X, pt2.Y);
2363
public void DrawLines(Pen pen, params
PointF
[] points) => DrawLines(pen, points.OrThrowIfNull().AsSpan());
2371
void DrawLines(Pen pen, params ReadOnlySpan<
PointF
> points)
2375
fixed (
PointF
* p = points)
2449
public void EnumerateMetafile(Metafile metafile,
PointF
destPoint, EnumerateMetafileProc callback) =>
2452
public void EnumerateMetafile(Metafile metafile,
PointF
destPoint, EnumerateMetafileProc callback, IntPtr callbackData) =>
2473
public void EnumerateMetafile(Metafile metafile,
PointF
[] destPoints, EnumerateMetafileProc callback) =>
2478
PointF
[] destPoints,
2490
PointF
destPoint,
2497
PointF
destPoint,
2550
PointF
[] destPoints,
2557
PointF
[] destPoints,
2585
public void TransformPoints(Drawing2DCoordinateSpace destSpace, Drawing2DCoordinateSpace srcSpace, params
PointF
[] pts)
2591
/// <inheritdoc cref="TransformPoints(Drawing2DCoordinateSpace, Drawing2DCoordinateSpace,
PointF
[])"/>
2597
void TransformPoints(Drawing2DCoordinateSpace destSpace, Drawing2DCoordinateSpace srcSpace, params ReadOnlySpan<
PointF
> pts)
2599
fixed (
PointF
* p = pts)
2610
/// <inheritdoc cref="TransformPoints(Drawing2DCoordinateSpace, Drawing2DCoordinateSpace,
PointF
[])"/>
2617
/// <inheritdoc cref="TransformPoints(Drawing2DCoordinateSpace, Drawing2DCoordinateSpace,
PointF
[])"/>
2789
public void DrawBeziers(Pen pen, params
PointF
[] points) =>
2798
void DrawBeziers(Pen pen, params ReadOnlySpan<
PointF
> points)
2802
fixed (
PointF
* p = points)
2941
PointF
destPoint,
2966
=> EnumerateMetafile(metafile, (
PointF
)destPoint, callback, callbackData, imageAttr);
2998
PointF
[] destPoints,
3008
fixed (
PointF
* p = destPoints)
3056
PointF
destPoint,
3088
(
PointF
)destPoint,
3131
PointF
[] destPoints,
3143
fixed (
PointF
* p = destPoints)
3296
PointF
offset = default;
3361
public void GetContextInfo(out
PointF
offset)
3375
public void GetContextInfo(out
PointF
offset, out Region? clip)
System\Drawing\Icon.cs (2)
367
PointF
offset = transform.Offset;
383
PointF
offset = transform.Offset;
System\Drawing\Internal\GpPathData.cs (1)
12
public
PointF
* Points;
System\Drawing\Region.cs (3)
281
public bool IsVisible(
PointF
point) => IsVisible(point, null);
285
public bool IsVisible(
PointF
point, Graphics? g)
322
public 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'/>
79
public static implicit operator
PointF
(Point p) => new PointF(p.X, p.Y);
123
public static Point Ceiling(
PointF
value) => new Point(unchecked((int)Math.Ceiling(value.X)), unchecked((int)Math.Ceiling(value.Y)));
128
public static Point Truncate(
PointF
value) => new Point(unchecked((int)value.X), unchecked((int)value.Y));
133
public static Point Round(
PointF
value) => new Point(unchecked((int)Math.Round(value.X)), unchecked((int)Math.Round(value.Y)));
System\Drawing\PointF.cs (52)
16
public struct PointF : IEquatable<
PointF
>
19
/// Creates a new instance of the <see cref='System.Drawing.
PointF
'/> class with member data left uninitialized.
21
public 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"/>.
76
public static explicit operator Vector2(
PointF
point) => point.ToVector2();
79
/// Converts the specified <see cref="System.Numerics.Vector2"/> to a <see cref="System.Drawing.
PointF
"/>.
81
public 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'/> .
86
public 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'/> .
91
public 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'/> .
96
public 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'/> .
101
public 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.
108
public 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.
115
public 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'/> .
120
public 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'/> .
125
public 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'/> .
130
public 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'/> .
135
public static
PointF
Subtract(
PointF
pt, SizeF sz) => new PointF(pt.X - sz.Width, pt.Y - sz.Height);
137
public override readonly bool Equals([NotNullWhen(true)] object? obj) => obj is
PointF
&& Equals((
PointF
)obj);
139
public readonly bool Equals(
PointF
other) => this == other;
System\Drawing\RectangleF.cs (4)
43
public RectangleF(
PointF
location, SizeF size)
89
public
PointF
Location
214
public readonly bool Contains(
PointF
pt) => Contains(pt.X, pt.Y);
308
public void Offset(
PointF
pos) => Offset(pos.X, pos.Y);
System\Drawing\SizeF.cs (6)
37
/// <see cref='System.Drawing.
PointF
'/>.
39
public SizeF(
PointF
pt)
125
/// Converts the specified <see cref='System.Drawing.SizeF'/> to a <see cref='System.Drawing.
PointF
'/>.
127
public static explicit operator
PointF
(SizeF size) => new PointF(size.Width, size.Height);
173
public 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.
194
public static void WritePointF(Stream stream,
PointF
value)
199
new ClassInfo(1, typeof(
PointF
).FullName!, s_pointMemberNames),
701
case
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
"/>.
26
public static PointFAssertions Should(this
PointF
actualValue) => new(actualValue);
72
/// Asserts a <see cref="
PointF
"/> value approximates another value as close as possible.
78
PointF
expectedValue,
91
/// Asserts that two <see cref="
PointF
"/> collections contain the same items in the same order
95
public static AndConstraint<GenericCollectionAssertions<
PointF
>> BeApproximatelyEquivalentTo(
96
this GenericCollectionAssertions<
PointF
> parent,
97
IEnumerable<
PointF
> expectation,
103
(
PointF
actual,
PointF
expected) =>
FluentAssertions\PointFAssertions.cs (2)
8
public class PointFAssertions(
PointF
value)
10
public
PointF
Subject { get; } = value;
System.Windows.Forms (8)
GlobalUsings.cs (1)
31
global using PointF = System.Drawing.
PointF
;
System\Windows\Forms\ActiveX\AxHost.cs (2)
1074
PointF
pcont = default;
1087
PointF
pcont = new(sz.Width, sz.Height);
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
163
HRESULT IOleControlSite.Interface.TransformCoords(POINTL* pPtlHimetric,
PointF
* pPtfContainer, uint dwFlags)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
1107
PointF
pcont = default;
1119
PointF
pcont = new(sz.Width, sz.Height);
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
82
HRESULT IOleControlSite.Interface.TransformCoords(POINTL* pPtlHimetric,
PointF
* pPtfContainer, uint dwFlags)
System\Windows\Forms\Rendering\DrawingEventArgs.cs (1)
156
graphics.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)