Point Class
Represents an ordered pair of integer corresponding to the horizontal and vertical coordinates that define a point in a two-dimensional plane. This class cannot be inherited.
Definition
| public sealed class Point: Object |
Members Table
The following table lists the members exposed by the Point object. Click a tab on the left to choose the type of member you want to view.
Methods
| Method | Description |
|---|
| Ceiling | Converts the specified PointF object to a Point object by rounding the values of the PointF object to the next higher integer values. |
| Equals | Overloaded. Compares two objects to determine if they are equal. |
| GetHashCode | Overriden. Returns a hash code for this Point object. |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| Offset | Translates this Point by the specified amount. |
| Point | Overloaded. Initializes a new instance of Point. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object) |
| Round | Converts the specified PointF object to a Point object by rounding the Point object values to the nearest integer. |
| ToPointF | Returns a PointF object from a Point object. |
| ToSize | Returns a Size object from a Point object. |
| ToString | Overriden. Converts this Point to a human readable string. |
| Truncate | Converts the specified PointF object to a Point object by truncating the values of the Point object. |
Properties
| Property | Description |
|---|
| Empty | Represents a null Point. |
| IsEmpty | Gets a value indicating whether this Point is empty. |
| X | Gets or sets the horizontal coordinate of this Point. |
| Y | Gets or sets the vertical coordinate of this Point. |
Operators
| Operator | Description |
|---|
| operator != | Compares two Point objects. The result specifies whether the values of the X or Y properties of the two Point objects are unequal. |
| operator + | Translates a Point by a given Size. |
| operator - | Translates a Point by the negative of a given Size. |
| operator == | Compares two Point objects. The result specifies whether the values of the X and Y properties of the two Point objects are equal. |
Inheritance Hierarchy
ObjectPoint
Class Information
| Namespace | System.Drawing |
|---|
| Flash Library | System.Drawing.scl |
|---|
| Flash Library Version | 2.0.0.1291 |
|---|
| Silverlight Library | System.Windows.Forms.dll |
|---|