Прочетете на английски Редактиране

Споделяне чрез


Size.Multiply Operator

Definition

Overloads

Multiply(Size, Int32)

Multiplies the specified Size by the specified integer.

Multiply(Size, Single)

Multiplies the specified Size by the specified single-precision floating-point number.

Multiply(Int32, Size)

Multiplies the specified integer by the specified Size.

Multiply(Single, Size)

Multiplies the specified single-precision floating-point number by the specified Size.

Multiply(Size, Int32)

Source:
Size.cs
Source:
Size.cs
Source:
Size.cs

Multiplies the specified Size by the specified integer.

C#
public static System.Drawing.Size operator *(System.Drawing.Size left, int right);

Parameters

left
Size

The multiplicand.

right
Int32

The multiplier.

Returns

The result of multiplying left's width and height by right.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1

Multiply(Size, Single)

Source:
Size.cs
Source:
Size.cs
Source:
Size.cs

Multiplies the specified Size by the specified single-precision floating-point number.

C#
public static System.Drawing.SizeF operator *(System.Drawing.Size left, float right);

Parameters

left
Size

The multiplicand.

right
Single

The multiplier.

Returns

The result of multiplying left's width and height by right.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1

Multiply(Int32, Size)

Source:
Size.cs
Source:
Size.cs
Source:
Size.cs

Multiplies the specified integer by the specified Size.

C#
public static System.Drawing.Size operator *(int left, System.Drawing.Size right);

Parameters

left
Int32

The multiplier.

right
Size

The multiplicand.

Returns

The result of multiplying right's width and height by left.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1

Multiply(Single, Size)

Source:
Size.cs
Source:
Size.cs
Source:
Size.cs

Multiplies the specified single-precision floating-point number by the specified Size.

C#
public static System.Drawing.SizeF operator *(float left, System.Drawing.Size right);

Parameters

left
Single

The multiplier.

right
Size

The multiplicand.

Returns

The result of multiplying right's width and height by left.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1