/// <summary> /// Builds a model of the rows within this entity. /// </summary> internal override RowOrColumnsModel BuildRowsModel() { var rowsModel = new RowOrColumnsModel(true); rowsModel.Add(this); if (this.RowSpan > 1) { for (int count = 2; count <= this.RowSpan; count++) { rowsModel.Add(this); } } return(rowsModel); }
/// <summary> /// Builds a model of the columns within this entity. /// </summary> internal override RowOrColumnsModel BuildColumnsModel() { var columnsModel = new RowOrColumnsModel(false); columnsModel.Add(this); if (this.ColumnSpan > 1) { for (int count = 2; count <= this.ColumnSpan; count++) { columnsModel.Add(this); } } return(columnsModel); }