Size.Subtraction(Size, Size) 运算符

定义

返回一个新的 Size,其 HeightWidth 等于 s1 的高度和宽度减去 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

参数

s1
Size

一个 Size,将从其值中减去某尺寸。

s2
Size

要从 Size 中减去的 s1

返回

一个 Size ,其 Width 等于 s1.Width - s2.Width ,其 Height 等于 sz1.Height - sz2.Height

适用于