Size::Add Method (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 structure to add.
- sz2
-
Type:
System.Drawing::Size
The second Size structure to add.
Return Value
Type: System.Drawing::SizeA Size structure that is the result of the addition operation.
The following code example demonstrates how to use the Add method. To run this example, paste it into a Windows Form. Handle the form’s Paint event and call the AddSizes method from the Paint event-handling method, passing e as PaintEventArgs.
.NET Framework
Available since 2.0
Available since 2.0
Show: