Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.
Assembly: System.Drawing (in System.Drawing.dll)
Thetype exposes the following members.
|Add||Adds the specified Size to the specified .|
|Ceiling||Converts the specified PointF to a by rounding the values of the PointF to the next higher integer values.|
|Equals||Specifies whether this contains the same coordinates as the specified Object. (Overrides ValueType.Equals(Object).)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Returns a hash code for this . (Overrides ValueType.GetHashCode().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|Offset(Point)||Translates this by the specified .|
|Offset(Int32, Int32)||Translates this by the specified amount.|
|Round||Converts the specified PointF to a object by rounding the values to the nearest integer.|
|Subtract||Returns the result of subtracting specified Size from the specified .|
|ToString||Converts this to a human-readable string. (Overrides ValueType.ToString().)|
|Truncate||Converts the specified PointF to a by truncating the values of the .|
|Addition||Translates a by a given Size.|
|Equality||Compares two objects. The result specifies whether the values of the X and Y properties of the two objects are equal.|
|Explicit(Point to Size)||Converts the specified structure to a Size structure.|
|Implicit(Point to PointF)||Converts the specified structure to a PointF structure.|
|Inequality||Compares two objects. The result specifies whether the values of the X or Y properties of the two objects are unequal.|
|Subtraction||Translates a by the negative of a given Size.|
The following code example creates points and sizes using several of the overloaded operators defined for these types. It also demonstrates how to use the SystemPens class.
This example is designed to be used with Windows Forms. Create a form that contains a Button named subtractButton. Paste the code into the form and call the CreatePointsAndSizes method from the form's Paint event-handling method, passing e as PaintEventArgs.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.