Share via


Size.Subtraction(Size, Size) Operator

Definition

Subtracts one size from another by subtracting 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 size to subtract from.

s2
Size

The size to subtract.

Returns

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

Applies to