This version of Unity is unsupported.

Rect.xMax

public float xMax;

Description

The maximum X coordinate of the rectangle.

Setting this value will change width to preserve xMin.