Share via


Size.Addition(Size, Size) Operator

Definition

Adds two sizes together by adding their width and height components.

public:
 static Microsoft::Maui::Graphics::Size operator +(Microsoft::Maui::Graphics::Size s1, Microsoft::Maui::Graphics::Size s2);
public static Microsoft.Maui.Graphics.Size operator +(Microsoft.Maui.Graphics.Size s1, Microsoft.Maui.Graphics.Size s2);
static member ( + ) : Microsoft.Maui.Graphics.Size * Microsoft.Maui.Graphics.Size -> Microsoft.Maui.Graphics.Size
Public Shared Operator + (s1 As Size, s2 As Size) As Size

Parameters

s1
Size

The first size to add.

s2
Size

The second size to add.

Returns

A new size with the width and height being the sum of the two sizes.

Applies to