/// <summary> /// Adds the group level lines. /// </summary> /// <param name="collection">The collection.</param> private void AddGroupLevelLines(ReportItemBase.ItemCollection collection) { if (_indentOffset.Equals(0)) return; for (var i = 0; i < _indentOffset / 0.15; i++) { var indentCell = new TextBox(); indentCell.Style.BackgroundColor = Color.White; indentCell.Style.BorderColor.Left = Color.DarkGray; indentCell.Style.BorderStyle.Left = BorderType.Dotted; indentCell.Location = new PointU(new Unit(0.15 * i, UnitType.Inch), new Unit(0, UnitType.Inch)); indentCell.Size = new SizeU(new Unit(0.15, UnitType.Inch), new Unit(0.2, UnitType.Inch)); collection.Insert(i, indentCell); } }