Size.Multiply 运算符

定义

重载

Multiply(Size, Int32)

将指定的 Size 与指定的整数相乘。Multiplies the specified Size by the specified integer.

Multiply(Size, Single)

将指定的 Size 与指定的单精度浮点数相乘。Multiplies the specified Size by the specified single-precision floating-point number.

Multiply(Int32, Size)

将指定的整数与指定的 Size 相乘。Multiplies the specified integer by the specified Size.

Multiply(Single, Size)

将指定的单精度浮点数与指定的 Size 相乘。Multiplies the specified single-precision floating-point number by the specified Size.

Multiply(Size, Int32)

将指定的 Size 与指定的整数相乘。Multiplies 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 multiplicand.

right
Int32

乘数。The multiplier.

返回

Size

left 的宽度和高度与 right 相乘的结果。The result of multiplying left's width and height by right.

适用于

Multiply(Size, Single)

将指定的 Size 与指定的单精度浮点数相乘。Multiplies 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 multiplicand.

right
Single

乘数。The multiplier.

返回

SizeF

left 的宽度和高度与 right 相乘的结果。The result of multiplying left's width and height by right.

适用于

Multiply(Int32, Size)

将指定的整数与指定的 Size 相乘。Multiplies the specified integer by the specified Size.

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

参数

left
Int32

乘数。The multiplier.

right
Size

被乘数。The multiplicand.

返回

Size

right 的宽度和高度与 left 相乘的结果。The result of multiplying right's width and height by left.

适用于

Multiply(Single, Size)

将指定的单精度浮点数与指定的 Size 相乘。Multiplies the specified single-precision floating-point number by the specified Size.

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

参数

left
Single

乘数。The multiplier.

right
Size

被乘数。The multiplicand.

返回

SizeF

right 的宽度和高度与 left 相乘的结果。The result of multiplying right's width and height by left.

适用于