Class PointF
Inheritance
System.Object
PointF
Namespace: Syncfusion.Drawing
Assembly: Syncfusion.Compression.Portable.dll
Syntax
public sealed class PointF : ValueType
Constructors
PointF(Single, Single)
Initializes a new instance of the PointF class.
Declaration
public PointF(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | The x. |
System.Single | y | The y. |
Fields
Empty
Declaration
public static readonly PointF Empty
Field Value
Type | Description |
---|---|
PointF |
Properties
X
Gets or sets the X.
Declaration
public float X { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The X. |
Y
Gets or sets the Y.
Declaration
public float Y { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The Y. |
Methods
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current System.Object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified System.Object is equal to the current System.Object; otherwise, false. |
Exceptions
Type | Condition |
---|---|
System.NullReferenceException | The |
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current System.Object. |
ToString()
Returns a System.String that represents the current System.Object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current System.Object. |
Operators
Equality(PointF, PointF)
Declaration
public static bool operator ==(PointF point1, PointF point2)
Parameters
Type | Name | Description |
---|---|---|
PointF | point1 | |
PointF | point2 |
Returns
Type | Description |
---|---|
System.Boolean |
Implicit(Point to PointF)
Declaration
public static implicit operator PointF(Point point)
Parameters
Type | Name | Description |
---|---|---|
Point | point |
Returns
Type | Description |
---|---|
PointF |
Inequality(PointF, PointF)
Declaration
public static bool operator !=(PointF point1, PointF point2)
Parameters
Type | Name | Description |
---|---|---|
PointF | point1 | |
PointF | point2 |
Returns
Type | Description |
---|---|
System.Boolean |