operator + method

Size operator + (Offset other)

Binary addition operator for adding an Offset to a Size.

Returns a Size whose width is the sum of the width of the left-hand-side operand, a Size, and the Offset.dx dimension of the right-hand-side operand, an Offset, and whose height is the sum of the height of the left-hand-side operand and the Offset.dy dimension of the right-hand-side operand.

Implementation

Size operator +(Offset other) => new Size(width + other.dx, height + other.dy);