This documentation is archived and is not being maintained.

Point.Add Method

Adds a Vector to a Point and returns the result as a Point structure.

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

public static Point Add(
	Point point,
	Vector vector
You cannot use methods in XAML.


Type: System.Windows.Point

The Point structure to add.

Type: System.Windows.Vector

The Vector structure to add.

Return Value

Type: System.Windows.Point
Returns the sum of point and vector.

Adding a Point structure to a Point structure is prohibited.

This example adds a Point to a Vector and returns the result as a Vector structure.

private Point addPointAndVectorExample()
    Point point1 = new Point(10, 5);
    Vector vector1 = new Vector(20, 30);

    // Add Point and Vector using the static Add method. 
    // pointResult is equal to (30,35).
    Point pointResult = Point.Add(point1, vector1);

    return pointResult;


Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0