private GetRect ( int index, int space, int height ) : Rect | ||
index | int | |
space | int | |
height | int | |
return | Rect |
Rect GetRect(int index, int space, int height)
{
int x = 10;
for(int i=0; i<index; ++i) x += space+Widths[i];
return new Rect(x, 0, Widths[index], height);
}