System::Drawing::PointF::Add method

PointF::Add(const PointF&, const Size&) method

Adds the width and height values of the specified Size object to the X and Y coordinates values of the specified PointF object correspondingly.

static PointF System::Drawing::PointF::Add(const PointF &point, const Size &size)
ParameterTypeDescription
pointconst PointF&The point to translate
sizeconst Size&The Size object that specifies the values to add to the coordinates values of the point

ReturnValue

A new PointF object whose X coordinate value is equal to the sum of X coordinate value of point and the width value of size and Y coordinate value is equal to the sum of Y coordinate value of point and the height value of size

See Also

PointF::Add(const PointF&, const SizeF&) method

Adds the width and height values of the specified SizeF object to the X and Y coordinates values of the specified PointF object correspondingly.

static PointF System::Drawing::PointF::Add(const PointF &point, const SizeF &size)
ParameterTypeDescription
pointconst PointF&The point to translate
sizeconst SizeF&The SizeF object that specifies the values to add to the coordinates values of the point

ReturnValue

A new PointF object whose X coordinate value is equal to the sum of X coordinate value of point and the width value of size and Y coordinate value is equal to the sum of Y coordinate value of point and the height value of size

See Also