PointF::Subtract Method (PointF, Size)

 

Translates a PointF by the negative of a specified size.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public:
static PointF Subtract(
	PointF pt,
	Size sz
)

Parameters

pt
Type: System.Drawing::PointF

The PointF to translate.

sz
Type: System.Drawing::Size

The Size that specifies the numbers to subtract from the coordinates of pt.

Return Value

Type: System.Drawing::PointF

The translated PointF.

The Subtract method subtracts the Width of the specified size from the x-coordinate of the PointF and the Height from the y-coordinate of the PointF.

.NET Framework
Available since 2.0
Return to top
Show: