Inflates rectangle by moving its sides away from its center.
Syntax: |
---|
DlxRect.Inflate(x, y) DlxRect.Inflate(l, b, r, t) |
Parameters
Parameter | Description |
---|---|
x | Specifies the number of units to inflate the left and right sides of rectangle. |
y | Specifies the number of units to inflate the top and bottom of rectangle. |
l | Specifies the number of units to inflate the left side of rectangle. |
b | Specifies the number of units to inflate the bottom of rectangle. |
r | Specifies the number of units to inflate the right side of rectangle. |
t | Specifies the number of units to inflate the top of rectangle. |
Return Value
If the operation ends correctly, it returns true otherwise it returns false.
Example
Copy code | |
---|---|
var r = new DlxRect(10, 20, 80, 100);
r.Inflate(5, 2);
DlxApp.Printf("r.left=%.2f, r.bottom=%.2f, r.right=%.2f, r.top=%.2f", r.left, r.bottom, r.right, r.top);
|