/// <summary>Gets the markup properties of the bottom border of the (current) last row.</summary> /// <returns> /// an array of /// <see cref="iText.Layout.Borders.Border"/> /// objects /// </returns> public virtual IList <Border> GetLastRowBottomBorder() { IList <Border> horizontalBorder = new List <Border>(); if (lastAddedRow != null) { for (int i = 0; i < lastAddedRow.Length; i++) { Cell cell = lastAddedRow[i]; Border border = null; if (cell != null) { if (cell.HasProperty(Property.BORDER_BOTTOM)) { border = cell.GetProperty <Border>(Property.BORDER_BOTTOM); } else { if (cell.HasProperty(Property.BORDER)) { border = cell.GetProperty <Border>(Property.BORDER); } else { border = cell.GetDefaultProperty <Border>(Property.BORDER); } } } horizontalBorder.Add(border); } } return(horizontalBorder); }
/// <summary>Gets the markup properties of the bottom border of the (current) last row. /// </summary> /// <returns> /// an array of /// <see cref="Border"/> /// objects /// </returns> public virtual List <Border> GetLastRowBottomBorder() { List <Border> horizontalBorder = new List <Border>(); if (lastAddedRow != null) { for (int i = 0; i < lastAddedRow.Length; i++) { Cell cell = lastAddedRow[i]; if (cell != null) { Border border = ((Border)cell.GetProperty <Border>(Property.BORDER)); if (border == null) { border = ((Border)cell.GetProperty <Border>(Property.BORDER_BOTTOM)); } horizontalBorder.Add(border); } } } return(horizontalBorder); }