示例#1
0
    public bool Remove(Point point)
    {
      if (List.Contains(point) == false)
      {
        return false;
      }

      List.Remove(point);

      return true;
    }
示例#2
0
 public Size(Point location) : this(location.X, location.Y) {}
示例#3
0
 public bool Contains(Point point, Matrix matrix)
 {
   return Contains(point.X, point.Y, matrix);
 }
示例#4
0
 public bool Contains(Point point)
 {
   return point.X >= _location.X && point.Y >= _location.Y && point.X <= _location.X + _size.Width &&
          point.Y <= _location.Y + _size.Height;
 }
示例#5
0
 public Rect(double x, double y, double w, double h)
 {
   _location = new Point(x, y);
   _size = new Size(w, h);
 }
示例#6
0
 public Rect(Point location, Size size) : this(location.X, location.Y, size.Width, size.Height) {}
示例#7
0
 public void Insert(int index, Point point)
 {
   List.Insert(index, point);
 }
示例#8
0
 public int IndexOf(Point point)
 {
   return List.IndexOf(point);
 }
示例#9
0
 public void CopyTo(Point[] array, int arrayIndex)
 {
   List.CopyTo(array, arrayIndex);
 }
示例#10
0
 public bool Contains(Point point)
 {
   return List.Contains(point);
 }
示例#11
0
 public void Add(Point point)
 {
   List.Add(point);
 }