此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个新的 Size,其 Height 和 Width 等于 s1 的高度和宽度减去 s2 的值。
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
一个 Size,将从其值中减去某尺寸。
要从 Size 中减去的 s1。
一个 Size ,其 Width 等于 s1.Width - s2.Width ,其 Height 等于 sz1.Height - sz2.Height。
s1.Width - s2.Width
sz1.Height - sz2.Height