Point.Subtraction Operator (Point, Vector)
.NET Framework (current version)
Note 

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. 
Namespace:
System.Windows
Assembly: WindowsBase (in WindowsBase.dll)
Return to top
Assembly: WindowsBase (in WindowsBase.dll)
Parameters
 point

Type:
System.Windows.Point
The point from which vector is subtracted.
 vector

Type:
System.Windows.Vector
The vector to subtract from point1
The following example shows how to subtract a Vector from a Point using the overloaded () operator.
private Point overloadedSubtractionOperatorExample1() { Point point1 = new Point(10, 5); Vector vector1 = new Vector(20, 30); // Subtracts a Vector from a Point using the overloaded subtraction () operator. // pointResult is equal to (10, 25) Point pointResult = point1  vector1; return pointResult; }
.NET Framework
Available since 3.0
Available since 3.0
Show: