Represents a point in a Cartesian coordinate system.
| C# | Visual Basic | Visual C++ |
public struct NSPoint : IEquatable<NSPoint>
Public Structure NSPoint _ Implements IEquatable(Of NSPoint)
public value class NSPoint : IEquatable<NSPoint>
| All Members | Constructors | Methods | Fields | ||
| Icon | Member | Description |
|---|---|---|
| NSPoint(Single, Single) |
Initializes a new instance of the NSPoint class.
| |
| Add(NSPoint, NSSize) |
Translates the point by the specified size.
| |
| Addition(NSPoint, NSSize) |
Implements the operator +.
| |
| CGPointFromNSPoint(NSPoint) |
Converts a NSPoint instance to a [!:CGPoint] | |
| Equality(NSPoint, NSPoint) |
Implements the operator ==.
| |
| Equals(NSPoint) |
Equalses the specified ns point.
| |
| Equals(Object) |
Indicates whether this instance and a specified object are equal.
(Overrides ValueType.Equals(Object).) | |
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()()() |
Returns the hash code for this instance.
(Overrides ValueType.GetHashCode()()()().) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Inequality(NSPoint, NSPoint) |
Implements the operator !=.
| |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| NSEqualPoints(NSPoint, NSPoint) |
Tests two points for equality.
| |
| NSMakePoint(Single, Single) |
Creates a new NSPoint from the specified values.
| |
| NSPointFromCGPoint(CGPoint) |
Converts a [!:CGPoint] instance to a NSPoint | |
| NSPointFromString(NSString) |
Returns a point from a text-based representation.
| |
| NSStringFromPoint(NSPoint) |
Returns a string representation of a point.
| |
| NSZeroPoint |
A NSPoint instance with its coordinates set to zero.
| |
| Substract(NSPoint, NSSize) |
Translates the point by the specified size.
| |
| Substract(NSPoint, NSPoint) |
Computes the size between the two points. The values are always positives.
| |
| Subtraction(NSPoint, NSSize) |
Implements the operator -.
| |
| Subtraction(NSPoint, NSPoint) |
Implements the operator -.
| |
| ToString()()()() |
Returns the a string representation of this instance.
(Overrides ValueType.ToString()()()().) | |
| x |
The x coordinate.
| |
| y |
The y coordinate.
|
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)