Прочитај на енглеском Уреди

Делите путем


Size.Division Operator

Definition

Overloads

Division(Size, Int32)

Divides the specified Size by the specified integer.

Division(Size, Single)

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

Division(Size, Int32)

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

Divides the specified Size by the specified integer.

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

Parameters

left
Size

The dividend.

right
Int32

The divisor.

Returns

A new Size, which contains the result of dividing left's height by right and left's width by right, respectively.

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

Division(Size, Single)

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

Divides 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 dividend.

right
Single

The divisor.

Returns

The result of dividing 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