public static void AddJustification(Paragraph paragraph, StringBuilder style)
 {
     String justification = GetJustification(paragraph.GetJustification());
     if (!string.IsNullOrEmpty(justification))
         style.Append("text-align:" + justification + ";");
 }
Exemple #2
0
 public static void SetJustification(Paragraph paragraph,
          XmlElement XmlElement)
 {
     String justification = GetJustification(paragraph.GetJustification());
     if (!string.IsNullOrEmpty(justification))
         XmlElement.SetAttribute("text-align", justification);
 }