Size::Addition Operator (Size, Size)
.NET Framework (current version)
Namespace:
System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Return to top
Assembly: System.Drawing (in System.Drawing.dll)
Parameters
- sz1
-
Type:
System.Drawing::Size
The first Size to add.
- sz2
-
Type:
System.Drawing::Size
The second Size to add.
Return Value
Type: System.Drawing::SizeA Size structure that is the result of the addition operation.
The following code example demonstrates the Addition operator. The example is designed to be used with Windows Forms. To run this example, paste it into a form that contains a button named addButton and associate the addButton_Click method with the button's Click event.
.NET Framework
Available since 1.1
Available since 1.1
Show: