menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PointF - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    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 obj parameter is null.

    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
    System.Boolean

    Implicit(Point to PointF)

    Declaration
    public static implicit operator PointF(Point point)
    Parameters
    Type Name Description
    Point point
    Returns
    Type
    PointF

    Inequality(PointF, PointF)

    Declaration
    public static bool operator !=(PointF point1, PointF point2)
    Parameters
    Type Name Description
    PointF point1
    PointF point2
    Returns
    Type
    System.Boolean
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved