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); }