Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Vector Explicit Conversion (Vector to Point)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Creates a Point with the X and Y values of this vector.

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

public static explicit operator Point (
	Vector vector


Type: System.Windows.Vector

The vector to convert.

Return Value

Type: System.Windows.Point

A point with X- and Y-coordinate values equal to the X and Y offset values of vector.

The following example shows how to convert a Vector into a Point.

private Point overloadedExplicitOperatorExample2()
    Vector vector1 = new Vector(20, 30);

    // Explicitly converts a Vector structure into a Point structure.
    // returnPoint is equal to (20, 30).
    Point returnPoint = (Point)vector1;

    return returnPoint;


.NET Framework
Available since 3.0
Return to top
© 2018 Microsoft