Export (0) Print
Expand All

Point.Subtract Method

Returns the result of subtracting specified Size from the specified Point.

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

public static Point Subtract (
	Point pt,
	Size sz
)
public static Point Subtract (
	Point pt, 
	Size sz
)
public static function Subtract (
	pt : Point, 
	sz : Size
) : Point
Not applicable.

Parameters

pt

The Point to be subtracted from.

sz

The Size to subtract from the Point.

Return Value

The Point that is the result of the subtraction operation.

The Subtract subtracts the Width and Height of the specified Size from the X and Y values of the specified point.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft