System::Drawing::Size::Add method

Size::Add 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)
ParameterTypeDescription
size1const Size&The first operand
size2const Size&The second operand

ReturnValue

The Size object which is the sum of size1 and size2

See Also