Size.Division 运算符

定义

重载

Division(Size, Int32)

将指定的 Size 除以指定的整数。Divides the specified Size by the specified integer.

Division(Size, Single)

将指定的 Size 除以指定的单精度浮点数。Divides the specified Size by the specified single-precision floating-point number.

Division(Size, Int32)

将指定的 Size 除以指定的整数。Divides the specified Size by the specified integer.

public:
 static System::Drawing::Size operator /(System::Drawing::Size left, int right);
public static System.Drawing.Size operator / (System.Drawing.Size left, int right);
static member ( / ) : System.Drawing.Size * int -> System.Drawing.Size
Public Shared Operator / (left As Size, right As Integer) As Size

参数

left
Size

被除数。The dividend.

right
Int32

除数。The divisor.

返回

Size

一个新的 Size,其中包含 left 的高度除以 right 以及 left 的宽度除以 right 的结果。A new Size, which contains the result of dividing left's height by right and left's width by right, respectively.

适用于

Division(Size, Single)

将指定的 Size 除以指定的单精度浮点数。Divides the specified Size by the specified single-precision floating-point number.

public:
 static System::Drawing::SizeF operator /(System::Drawing::Size left, float right);
public static System.Drawing.SizeF operator / (System.Drawing.Size left, float right);
static member ( / ) : System.Drawing.Size * single -> System.Drawing.SizeF
Public Shared Operator / (left As Size, right As Single) As SizeF

参数

left
Size

被除数。The dividend.

right
Single

除数。The divisor.

返回

SizeF

left 的宽度和高度除以 right 的结果。The result of dividing left's width and height by right.

适用于