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의 합계를 반환합니다.
예제
추가 하는이 예제를 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;
}
설명
추가 Point 구조체를 Point 구조가 허용 되지 않습니다.