コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref='RelativeRectangle'/> class with the specified location and size.
 /// </summary>
 public RelativeRectangle(RelativePoint location, RelativeSize size)
 {
     x      = location.X;
     y      = location.Y;
     width  = size.Width;
     height = size.Height;
 }
コード例 #2
0
 /// <summary>
 /// Adjusts the location of this rectangle by the specified amount.
 /// </summary>
 public void Offset(RelativePoint pos) => Offset(pos.X, pos.Y);
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref='RelativeSize'/> class from the specified <see cref='RelativePoint'/>.
 /// </summary>
 public RelativeSize(RelativePoint pt)
 {
     width  = pt.X;
     height = pt.Y;
 }