Add()

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

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

static Point System::Drawing::Point::Add(const Point &point, const Size &size)

Arguments

ParameterTypeDescription
pointconst Point&The point to translate
sizeconst Size&The Size object that specifies the values to add to the coordinates values of the point

Return Value

A new Point 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