Point.Add(Point, Vector) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
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와 vector의 합계를 반환합니다.
예제
다음은 a Point 를 Vector 추가하고 결과를 구조체로 반환하는 예제입니다Vector.
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;
}
설명
구조체에 PointPoint 구조를 추가하는 것은 금지됩니다.