Size::Add Method (Size, Size)

 

Adds the width and height of one Size structure to the width and height of another Size structure.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public:
static Size Add(
	Size sz1,
	Size sz2
)

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::Size

A 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: