PointF::Add Method (PointF, Size)

 

Translates a given PointF by the specified Size.

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

public:
static PointF Add(
	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 add to the coordinates of pt.

Return Value

Type: System.Drawing::PointF

The translated PointF.

The Add method adds the Width of the specified size to the x-coordinate of the PointF and the Height to the y-coordinate of the PointF.

.NET Framework
Available since 2.0
Return to top
Show: