Overloaded Point operators: == : Point « 2D « C# / CSharp Tutorial






using System;
using System.Drawing;

class MainClass
{
  public static int Main(string[] args)
  {
    
    Point pt = new Point(100, 72);
    Console.WriteLine(pt);

    Point pt2 = pt;        
    if(pt == pt2)
      Console.WriteLine("Points are the same");
    else
      Console.WriteLine("Different points");
  
    return 0;
  }
}
{X=100,Y=72}
Points are the same








27.4.Point
27.4.1.Create and offset a point
27.4.2.Overloaded Point operators: ==
27.4.3.Add point and size and copy to point
27.4.4.Concert Point to Size
27.4.5.Create a PointF from Point
27.4.6.Createing Point
27.4.7.Createing PointF
27.4.8.Point Ceiling, Round, Truncate
27.4.9.Subtract point and size