System::Drawing::PointF class
Contents
[
Hide
]PointF class
Represents a pair of single-precision floating point X and Y coordinates of a point on a 2-dimensional plane. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.
class PointF
Methods
Method | Description |
---|---|
static Add(const PointF&, const SizeF&) | Adds the width and height values of the specified SizeF object to the X and Y coordinates values of the specified PointF object correspondingly. |
static Add(const PointF&, const Size&) | Adds the width and height values of the specified Size object to the X and Y coordinates values of the specified PointF object correspondingly. |
Equals(const PointF&) const | Determines if the current object and the specified object are equal, i.e. represent the same pair of X and Y coordinates values. |
get_IsEmpty() const | Determines if both X and Y coordinates values are equal to 0. |
get_X() const | Returns the value of X coordinate represented by the current object. |
get_Y() const | Returns the value of Y coordinate represented by the current object. |
GetHashCode() const | Returns a hash code for the current object. |
IsNull() const | Always returns false. |
explicit operator bool() | Always returns true. |
PointF() | Constructs a new PointF object and initializes its X and Y coordinates values with 0. |
PointF(float, float) | Constructs a new PointF object and initializes it with the specified values. |
PointF(const SizeF&) | Constructs a new PointF object and initializes its X and Y coordinates values with the values of width and height of the specifide SizeF object correspondingly. |
set_X(float) | Sets the value of X coordinate represented by the current object. |
set_Y(float) | Sets the value of Y coordinate represented by the current object. |
static Subtract(const PointF&, const SizeF&) | Subtracts the width and height values of the specified SizeF object from the X and Y coordinates values of the specified PointF object correspondingly. |
static Subtract(const PointF&, const Size&) | Subtracts the width and height values of the specified Size object from the X and Y coordinates values of the specified PointF object correspondingly. |
ToString() const | Returns the string representation of the pair of X and Y coordinates values represented by the current object. |
Fields
Field | Description |
---|---|
static Empty | An empty instance of PointF class whose X and Y coordinates values are 0. |
See Also
- Namespace System::Drawing
- Library Aspose.PUB for C++