Expand expands each side of the local rectangle by a set value. The following expression is used to determine the result:
(x1, y1, x2, y2) = (x1 - [l, m.x1, h.Begin, val, h], y1 - [t, m.y1, v.Begin, val, v], x2 + [r, m.x2, h.End, val, h], y2 + [b, m.y2, v.End, val, v])
Parameters |
Description |
T l |
A value that is subtracted from x1. |
T t |
A value that is subtracted from y1. |
T r |
A value that is added to x2. |
T b |
A value that is added to y2. |
T val |
A value that is subtracted from x1 and y1 and added to x2 and y2. |
T h |
Either a value that is subtracted from x1 or added to x2, or a range margin whose beginning and end are subtracted from and added to x1 and x2 respectively. |
T v |
Either a value that is subtracted from y1 or added to y2, or a range margin whose beginning and end are subtracted from and added to y1 and y2 respectively. |
A Rect reference to the local variable whose components are determined by expanding the original components by set values.