18 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.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 (7)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1087
PointF pcont =
new
(sz.Width, sz.Height);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1126
PointF pcont =
new
(sz.Width, sz.Height);
System\Windows\Forms\Rendering\Button\PopupButtonKeyCapRenderer.cs (2)
210
bowlBrush.CenterPoint = new
PointF
(
213
bowlBrush.FocusScales = new
PointF
(0.28f, 0.22f);
System\Windows\Forms\Rendering\CheckBox\AnimatedCheckGlyphRenderer.cs (3)
270
PointF first =
new
(bounds.Left + (bounds.Width * 0.20f), bounds.Top + (bounds.Height * 0.52f));
271
PointF second =
new
(bounds.Left + (bounds.Width * 0.42f), bounds.Top + (bounds.Height * 0.74f));
272
PointF 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.
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 (1)
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
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.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 (11)
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)
1114
PointF
pcont = default;
1126
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\CheckBox\AnimatedCheckGlyphRenderer.cs (3)
270
PointF
first = new(bounds.Left + (bounds.Width * 0.20f), bounds.Top + (bounds.Height * 0.52f));
271
PointF
second = new(bounds.Left + (bounds.Width * 0.42f), bounds.Top + (bounds.Height * 0.74f));
272
PointF
third = new(bounds.Left + (bounds.Width * 0.82f), bounds.Top + (bounds.Height * 0.28f));
System\Windows\Forms\Rendering\DrawingEventArgs.cs (1)
156
graphics.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);