public static void AddTableRowProperties(TableRow tableRow, StringBuilder style)
 {
     if (tableRow.GetRowHeight() > 0)
     {
         style.Append("height:" + (tableRow.GetRowHeight() / TWIPS_PER_INCH) + "in;");
     }
     if (!tableRow.cantSplit())
     {
         style.Append("keep-together:always;");
     }
 }
Exemple #2
0
 public static void SetTableRowProperties(TableRow tableRow, XmlElement tableRowXmlElement)
 {
     if (tableRow.GetRowHeight() > 0)
     {
         tableRowXmlElement.SetAttribute("height",
                 (tableRow.GetRowHeight() / TWIPS_PER_INCH) + "in");
     }
     if (!tableRow.cantSplit())
     {
         tableRowXmlElement.SetAttribute("keep-together.within-column",
                 "always");
     }
 }