Size.Subtraction(Size, Size) 運算子

定義

傳回新的 Size,其 HeightWidths1 的高度和寬度減去 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

適用於