Vector Explicit Conversion (Vector to Size)

 

Creates a Size from the offsets of this vector.

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

public:
static explicit operator Size (
	Vector vector
)

Parameters

vector
Type: System.Windows::Vector

The vector to convert.

Return Value

Type: System.Windows::Size

A Size with a Width equal to the absolute value of this vector's X property and a Height equal to the absolute value of this vector's Y property.

The following example shows how to explicitly convert a Vector into a Size.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: