UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | req.product | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:gdiplustypes.PointF.operator-add |
PointF::operator-add (gdiplustypes.h) |
The PointF::operator+ method adds the X and Y data members of two PointF objects. |
|
gdiplus\_gdiplus_CLASS_PointF_operator_opadd_point_.htm |
gdiplus |
VS|gdicpp|~\gdiplus\gdiplusreference\classes\pointfclass\pointfmethods\operatorplus_90point.htm |
12/05/2018 |
PointF class [GDI+],operator+ method, PointF.operator+, PointF.operator+(const PointF&), PointF.operator-add, PointF::operator+, PointF::operator-add, _gdiplus_CLASS_PointF_operator_opadd_point_, gdiplus._gdiplus_CLASS_PointF_operator_opadd_point_, operator+, operator+ method [GDI+], operator+ method [GDI+],PointF class |
gdiplustypes.h |
Gdiplus.h |
Windows |
Windows XP, Windows 2000 Professional [desktop apps only] |
Windows 2000 Server [desktop apps only] |
Gdiplus.lib |
Gdiplus.dll |
Windows |
GDI+ 1.0 |
19H1 |
|
|
|
|
|
|
The PointF::operator+ method adds the X and Y data members of two PointF objects.
Type: const PointF
Reference to a PointF object whose X and Y data members are added to the X and Y data members of this PointF object.
Type: PointF
This method returns a PointF object that is the sum of two PointF objects.
This method overloads the addition operator for PointF objects. If A, B, and C are PointF objects, the statement C = A + B is equivalent to C = A.operator+(B).
The following example creates two PointF objects, then adds the two PointF objects and stores the result in a third PointF object.
PointF point1(40.0f, 10.0f);
PointF point2(20.0f, 30.0f);
// Point3 now contains the coordinates (60.0f, 40.0f).
PointF point3 = point1 + point2;