RectangleF.Explicit Operator

Definition

Overloads

Explicit(RectangleF to Vector4)

Converts the specified RectangleF to a Vector4.

Explicit(Vector4 to RectangleF)

Converts the specified Vector4 to a RectangleF.

Explicit(RectangleF to Vector4)

Source:
RectangleF.cs
Source:
RectangleF.cs
Source:
RectangleF.cs

Converts the specified RectangleF to a Vector4.

C#
public static explicit operator System.Numerics.Vector4(System.Drawing.RectangleF rectangle);

Parameters

rectangle
RectangleF

The rectangle to convert.

Returns

The vector that represents the converted RectangleF.

Applies to

.NET 10 and other versions
Product Versions
.NET 6, 7, 8, 9, 10

Explicit(Vector4 to RectangleF)

Source:
RectangleF.cs
Source:
RectangleF.cs
Source:
RectangleF.cs

Converts the specified Vector4 to a RectangleF.

C#
public static explicit operator System.Drawing.RectangleF(System.Numerics.Vector4 vector);

Parameters

vector
Vector4

The vector to convert.

Returns

The rectangle that represents the converted Vector4.

Applies to

.NET 10 and other versions
Product Versions
.NET 6, 7, 8, 9, 10