This documentation is archived and is not being maintained.

Point Subtraction Operator

Translates a Point by the negative of a given Size.

[Visual Basic]
returnValue = Point.op_Subtraction(pt, sz)
[C#]
public static Point operator -(
 Point pt,
 Size sz
);
[C++]
public: static Point op_Subtraction(
 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 subtract from the coordinates of pt.

Parameters [C#, C++]

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

Return Value

A Point structure that is translated by the negative of a given Size 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: