width property

int width

Number of columns in the grid, and the upper bound for the x-coordinate.

Always non-negative.

Implementation

int get width;
void width=(int value)

Sets the number of columns in the grid.

The behavior of this method is as follows:

  • If the grid would shrink, elements outside the new bounds are removed.
  • If the grid would grow, the new elements are filled with empty.

The width must be non-negative.

Implementation

set width(int value);