Share via


Size.Subtraction(Size, Size) Operator

Definition

Returns a new Size whose Height and Width are s1's height and width minus the values in s2.

public static Xamarin.Forms.Size operator - (Xamarin.Forms.Size s1, Xamarin.Forms.Size s2);
static member ( - ) : Xamarin.Forms.Size * Xamarin.Forms.Size -> Xamarin.Forms.Size

Parameters

s1
Size

A Size from whose values a size will be subtracted.

s2
Size

The Size to subtract from s1.

Returns

A Size whose Width is equal to s1.Width - s2.Width and whose Height is equal to sz1.Height - sz2.Height.

Applies to