◆ Encapsulating() [2/2]

static Rect Encapsulating ( this Rect  rect,
Rect  recttoAdd 
)
static
Parameters
recta Reference to the Rect that will be adjusted.
recttoAddThe Rect that should included in the final Rect. This means all corners of this rect will be encapsulated in the final rect.
Returns
The original Rect, specifying position, width and height, possibly modified, to fully encapsulate all corners of the rectoAdd.