/// <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; }
/// <summary> /// Adjusts the location of this rectangle by the specified amount. /// </summary> public void Offset(RelativePoint pos) => Offset(pos.X, pos.Y);
/// <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; }