• Overview
  • How it works
  • Documentation
  • Blog
  • Forum
Search Results for

    Show / Hide Table of Contents

    Point Struct

    Definition

    Namespace: Alternet.Drawing
    Assembly: Alternet.UI.dll

    Represents an ordered pair of x and y coordinates that define a point in a two-dimensional plane.

    Implements
    IEquatable<Point>
    Syntax
    [Serializable]
    public struct Point : IEquatable<Point>

    Constructors

    Point(Double, Double)

    Initializes a new instance of the Point class with the specified coordinates.

    Point(Vector2)

    Initializes a new instance of the Point struct from the specified System.Numerics.Vector2.

    Fields

    Empty

    Creates a new instance of the Point class with member data left uninitialized.

    Properties

    IsEmpty

    Gets a value indicating whether this Point is empty.

    X

    Gets the x-coordinate of this Point.

    Y

    Gets the y-coordinate of this Point.

    Methods

    Add(Point, Int32Size)

    Translates a Point by a given Int32Size.

    Add(Point, Size)

    Translates a Point by a given Size.

    Equals(Point)

    Indicates whether the current object is equal to another object of the same type.

    Equals(Object)

    Determines whether the specified object is equal to the current object.

    GetHashCode()

    Serves as the default hash function.

    Parse(String)

    Parse - returns an instance converted from the provided string using the culture "en-US"

    string with Point data
    Subtract(Point, Int32Size)

    Translates a Point by the negative of a given Int32Size.

    Subtract(Point, Size)

    Translates a Point by the negative of a given Size.

    ToString()

    Returns a string that represents the current object.

    Operators

    Addition(Point, Int32Size)

    Translates a Point by a given Int32Size.

    Addition(Point, Size)

    Translates a Point by a given Size.

    Addition(Point, Double)

    Moves a Point by a given value.

    Equality(Point, Point)

    Compares two Point objects. The result specifies whether the values of the X and Y properties of the two Point objects are equal.

    Explicit(Vector2 to Point)

    Converts the specified System.Numerics.Vector2 to a Point.

    Inequality(Point, Point)

    Compares two Point objects. The result specifies whether the values of the X or Y properties of the two Point objects are unequal.

    Subtraction(Point, Int32Size)

    Translates a Point by the negative of a given Int32Size.

    Subtraction(Point, Size)

    Translates a Point by the negative of a given Size.

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)

    Implements

    System.IEquatable<T>
    In This Article
    Back to top Documentation Licensing Info Copyright AlterNET Software