Create and offset a point : 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);
    pt.Offset(20, 20);
    Console.WriteLine(pt);
  
    return 0;
  }
}
{X=100,Y=72}
{X=120,Y=92}








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