## 정의

VectorPoint를 추가하고 그 결과를 Point 구조체로 반환합니다.Adds a Vector to a Point and returns the result as a Point structure.

``````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``

#### 매개 변수

point
Point

추가할 Point 구조체입니다.The Point structure to add.

vector
Vector

추가할 Vector 구조체입니다.The Vector structure to add.

#### 반환

Point

`point``vector`의 합계를 반환합니다.Returns the sum of `point` and `vector`.

## 예제

추가 하는이 예제를 PointVector 으로 결과 반환 하 고는 Vector 구조.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);

// pointResult is equal to (30,35).