This documentation is archived and is not being maintained.

Point Addition Operator

Translates a Point by a given Size.

[Visual Basic]
returnValue = Point.op_Addition(pt, sz)
[C#]
public static Point operator +(
 Point pt,
 Size sz
);
[C++]
public: static Point op_Addition(
 Point pt,
 Size sz
);
[JScript]
returnValue = pt + sz;

[Visual Basic] In Visual Basic, you can use the operators defined by a type, but you cannot define your own.

[JScript] In JScript, you can use the operators defined by a type, but you cannot define your own.

Arguments [Visual Basic, JScript]

pt
The Point to translate.
sz
A Size that specifies the pair of numbers to add to the coordinates of pt.

Parameters [C#, C++]

pt
The Point to translate.
sz
A Size that specifies the pair of numbers to add to the coordinates of pt.

Return Value

The translated Point structure.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Point Structure | Point Members | System.Drawing Namespace

Show: