Hi, I would like to merge two adjacent cells that are in 2 different rows together (i.e. I would like to make a cell that spans two rows). Could you please advice me on how to do that?
Thanks!
Terry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
GridPrint does not support spanning multiple rows. Currently the only way to do this is to nest a GridPrint with multiple rows inside another GridPrint:
GridPrint outer = new GridPrint("d, d:g");
outer.add(new TextPrint("This cell appears to span\nmultiple rows));
GridPrint inner = new GridPrint("d:g");
inner.add(new TextPrint("This cell occupies the upper row"));
inner.add(new TextPrint("This cell occupies the lower row"));
outer.add(inner);
I have an idea how we could add support for row spans to GridPrint. Please fill out a feature request in the tracker and we can discuss it further there.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I would like to merge two adjacent cells that are in 2 different rows together (i.e. I would like to make a cell that spans two rows). Could you please advice me on how to do that?
Thanks!
Terry
GridPrint does not support spanning multiple rows. Currently the only way to do this is to nest a GridPrint with multiple rows inside another GridPrint:
GridPrint outer = new GridPrint("d, d:g");
outer.add(new TextPrint("This cell appears to span\nmultiple rows));
GridPrint inner = new GridPrint("d:g");
inner.add(new TextPrint("This cell occupies the upper row"));
inner.add(new TextPrint("This cell occupies the lower row"));
outer.add(inner);
I have an idea how we could add support for row spans to GridPrint. Please fill out a feature request in the tracker and we can discuss it further there.
Thanks for the quick reply. I've filed a feature request for this.