Add()

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

Returns a new Size object that is a sum of the specified Size object, i.e. whose width value is equal to the sum of width values of the specified objects and height value is equal to the sum of height values of the specified objects.

static Size System::Drawing::Size::Add(const Size &size1, const Size &size2)

Arguments

ParameterTypeDescription
size1const Size&The first operand
size2const Size&The second operand

Return Value

The Size object which is the sum of size1 and size2

See Also