Point.Add(Point, Vector) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
static System::Windows::Point Add(System::Windows::Point point, System::Windows::Vector vector);
public static System.Windows.Point Add (System.Windows.Point point, System.Windows.Vector vector);
static member Add : System.Windows.Point * System.Windows.Vector -> System.Windows.Point
Public Shared Function Add (point As Point, vector As Vector) As Point
Parameters
Returns
Returns the sum of point
and vector
.
Examples
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;
}
Remarks
Adding a Point structure to a Point structure is prohibited.
Applies to
See also
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.