อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


Size.Explicit Operator

Definition

Explicitly converts instances of Size to other data types.

Overloads

Explicit(Size to Point)

Explicitly converts an instance of Size to an instance of Point.

Explicit(Size to Vector)

Explicitly converts an instance of Size to an instance of Vector.

Explicit(Size to Point)

Explicitly converts an instance of Size to an instance of Point.

C#
public static explicit operator System.Windows.Point(System.Windows.Size size);

Parameters

size
Size

The Size value to be converted.

Returns

A Point equal in value to this instance of Size.

Applies to

.NET Framework 4.8.1 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Explicit(Size to Vector)

Explicitly converts an instance of Size to an instance of Vector.

C#
public static explicit operator System.Windows.Vector(System.Windows.Size size);

Parameters

size
Size

The Size value to be converted.

Returns

A Vector equal in value to this instance of Size.

Applies to

.NET Framework 4.8.1 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10