## 定義

ベクターを、ポイントまたは別のベクターに加算します。Adds a vector to a point or to another vector.

## オーバーロード

``````public:
static System::Windows::Point Add(System::Windows::Vector vector, System::Windows::Point point);``````
``public static System.Windows.Point Add (System.Windows.Vector vector, System.Windows.Point point);``
``static member Add : System.Windows.Vector * System.Windows.Point -> System.Windows.Point``

#### パラメーター

vector
Vector Vector Vector Vector

point
Point Point Point Point

#### 戻り値

`point``vector` によって変換した結果。The result of translating `point` by `vector`.

### 例

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

// Add Point and Vector together.
// pointResult is equal to (30,35).

return pointResult;

}
``````
こちらもご覧ください

2 つのベクターを加算し、その結果を Vector 構造体として返します。Adds two vectors and returns the result as a Vector structure.

``````public:
static System::Windows::Vector Add(System::Windows::Vector vector1, System::Windows::Vector vector2);``````
``public static System.Windows.Vector Add (System.Windows.Vector vector1, System.Windows.Vector vector2);``
``static member Add : System.Windows.Vector * System.Windows.Vector -> System.Windows.Vector``
``Public Shared Function Add (vector1 As Vector, vector2 As Vector) As Vector``

#### パラメーター

vector1
Vector Vector Vector Vector

vector2
Vector Vector Vector Vector

#### 戻り値

`vector1``vector2` の合計。The sum of `vector1` and `vector2`.

### 例

``````private Vector addTwoVectorsExample()
{
// Create two Vector structures.
Vector vector1 = new Vector(20, 30);
Vector vector2 = new Vector(45, 70);
Vector vectorResult = new Vector();